[Zope-CVS] CVS: Packages/WinBuilders/mk - spreadwrapper.mk:1.1.2.1

Tim Peters tim.one at comcast.net
Tue Feb 3 14:31:14 EST 2004


Update of /cvs-repository/Packages/WinBuilders/mk
In directory cvs.zope.org:/tmp/cvs-serv31971/mk

Added Files:
      Tag: tim-zrs-branch
	spreadwrapper.mk 
Log Message:
New buildout spreadwrapper target to repackage the Python Spread wrapper
module (spread.pyd).

XXX Should install the wrapper's modules test program.  Where?


=== Added File Packages/WinBuilders/mk/spreadwrapper.mk ===
# Builds the Python Spread wrapper module.
# Puts spread.pyd into build/bin, and various text files (Windowsized and
# renamed) into build/doc.

# Download the wrapper module tarball, from
# http://www.python.org/other/spread/.
# Store it in tmp/.  NOTE:  May need to rename it to .tgz (depends on how
# it's downloaded).  The name is of the form SpreadModule-n.n.tgz

# XXX We should install the Spread wrapper's test suite.  Where?

SPREADWRAPPER_VERSION=1.4
SPREADWRAPPER_DIR=SpreadModule-$(SPREADWRAPPER_VERSION)
SPREADWRAPPER_ARCHIVE=$(SPREADWRAPPER_DIR).tgz
SPREADWRAPPER_REQUIRED_FILES=tmp/$(SPREADWRAPPER_ARCHIVE)

REQUIRED_FILES=$(SPREADWRAPPER_REQUIRED_FILES)

SPREADWRAPPER_TMPDIR=tmp/spreadwrapper

# Unpack the tarball into src/.
build_spreadwrapper: $(SRC_DIR)/$(SPREADWRAPPER_DIR)/spreadmodule.c

# Copy the Windows stuff into the build tree.
install_spreadwrapper: $(BUILD_DIR)/bin/spread.pyd \
		       $(BUILD_DIR)/doc/spreadwrapper-doc.txt \
		       $(BUILD_DIR)/doc/SPREADWRAPPER-LICENSE.txt \
		       $(BUILD_DIR)/doc/SPREADWRAPPER-README.txt


$(SRC_DIR)/$(SPREADWRAPPER_DIR)/spreadmodule.c: tmp/$(SPREADWRAPPER_ARCHIVE)
	$(MKDIR) "$(SRC_DIR)"
	$(TAR) -C "$(SRC_DIR)" -xvzf $<
	$(TOUCH) $@

# A dumb trick so we don't unpack the tarball multiple times.
$(SRC_DIR)/$(SPREADWRAPPER_DIR)/doc.txt \
$(SRC_DIR)/$(SPREADWRAPPER_DIR)/LICENSE \
$(SRC_DIR)/$(SPREADWRAPPER_DIR)/README : $(SRC_DIR)/$(SPREADWRAPPER_DIR)/spreadmodule.c
	$(TOUCH) $@

$(SPREADWRAPPER_TMPDIR)/Lib/site-packages/spread.pyd: $(SRC_DIR)/$(SPREADWRAPPER_DIR)/spreadmodule.c
	$(CD) $(SRC_DIR)/$(SPREADWRAPPER_DIR); \
		$(BUILD_DIR)/bin/python.exe setup.py install \
			--prefix=../../$(SPREADWRAPPER_TMPDIR)

$(BUILD_DIR)/bin/spread.pyd: $(SPREADWRAPPER_TMPDIR)/Lib/site-packages/spread.pyd
	$(CP) $< $@
	$(TOUCH) $@

$(BUILD_DIR)/doc/spreadwrapper-doc.txt: $(SRC_DIR)/$(SPREADWRAPPER_DIR)/doc.txt
	$(CP) $< $@
	unix2dos $@
	$(TOUCH) $@

$(BUILD_DIR)/doc/SPREADWRAPPER-LICENSE.txt: $(SRC_DIR)/$(SPREADWRAPPER_DIR)/LICENSE
	$(CP) $< $@
	unix2dos $@
	$(TOUCH) $@

$(BUILD_DIR)/doc/SPREADWRAPPER-README.txt: $(SRC_DIR)/$(SPREADWRAPPER_DIR)/README
	$(CP) $< $@
	unix2dos $@
	$(TOUCH) $@




More information about the Zope-CVS mailing list