Browse Source

try to fix bzr, unify python support

Waldemar Brodkorb 14 years ago
parent
commit
7c980e2759
4 changed files with 53 additions and 19 deletions
  1. 3 0
      mk/python.mk
  2. 11 12
      package/bzr/Makefile
  3. 4 7
      package/cherrypy/Makefile
  4. 35 0
      package/pyrex/Makefile

+ 3 - 0
mk/python.mk

@@ -0,0 +1,3 @@
+PYTHON_VERSION=2.7
+PYTHON_LIBDIR:=$(STAGING_TOOLS)/lib
+PYTHON:=${STAGING_TOOLS}/bin/hostpython

+ 11 - 12
package/bzr/Makefile

@@ -4,31 +4,30 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=		bzr
-PKG_VERSION:=		2.0.4
+PKG_VERSION:=		2.3b3
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		0b253f59601ebc9ee5975c612fc65f43
+PKG_MD5SUM:=		94f9181b9a4ab84b94cfbc06bd5dfd91
 PKG_DESCR:=		bazaar
 PKG_SECTION:=		scm
 PKG_DEPENDS:=		python2
 PKG_BUILDDEP:=		python2
 PKG_URL:=		http://bazaar.canonical.com/en/
-PKG_SITES:=		http://launchpad.net/bzr/2.0/${PKG_VERSION}/+download/
+PKG_SITES:=		http://launchpad.net/bzr/2.3/${PKG_VERSION}/+download/
 
 include $(TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,BZR,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
-PYTHON_VERSION=2.6
-PYTHON_DIR:=$(STAGING_DIR)/usr
-PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin
-PYTHON_INC_DIR:=$(PYTHON_DIR)/include/python$(PYTHON_VERSION)
-PYTHON_LIB_DIR:=$(PYTHON_DIR)/lib/python$(PYTHON_VERSION)
-PYTHON:=python$(PYTHON_VERSION)
-PYTHON_PKG_DIR:=/usr/lib/python$(PYTHON_VERSION)/site-packages
-
 CONFIG_STYLE:=		manual
+BUILD_STYLE:=		manual
+INSTALL_STYLE:=		manual
+
+include $(TOPDIR)/mk/python.mk
+
+do-build:
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
 
-post-install:
+do-install:
 	$(INSTALL_DIR) $(IDIR_BZR)/usr/bin
 	$(INSTALL_BIN) $(WRKINST)/usr/bin/bzr \
 		$(IDIR_BZR)/usr/bin

+ 4 - 7
package/cherrypy/Makefile

@@ -16,20 +16,17 @@ PKG_SITES:=		http://download.cherrypy.org/cherrypy/3.2.0rc1/
 
 include $(TOPDIR)/mk/package.mk
 
-$(eval $(call PKG_template,CHERRYPY,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,CHERRYPY,cherrypy,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 CONFIG_STYLE:=		manual
 BUILD_STYLE:=		manual
 INSTALL_STYLE:=		manual
 
-PYTHON_VERSION=2.7
-PYTHON_DIR:=$(STAGING_TOOLS)
-PYTHON_LIB_DIR:=$(PYTHON_DIR)/lib
-PYTHON:=${STAGING_TOOLS}/bin/hostpython
+include $(TOPDIR)/mk/python.mk
 
 do-build:
-	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIB_DIR) $(PYTHON) ./setup.py build
-	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIB_DIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
 
 do-install:
 	$(INSTALL_DIR) $(IDIR_CHERRYPY)/usr/bin

+ 35 - 0
package/pyrex/Makefile

@@ -0,0 +1,35 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=		Pyrex
+PKG_VERSION:=		0.9.9
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		515dee67d15d4393841e2d60e8341947
+PKG_DESCR:=		mixes Python and C data types
+PKG_SECTION:=		libs
+PKG_URL:=		http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
+PKG_SITES:=		http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,PYREX,pyrex,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:=		manual
+BUILD_STYLE:=		manual
+INSTALL_STYLE:=		manual
+
+include $(TOPDIR)/mk/python.mk
+
+do-build:
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py build
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(STAGING_TOOLS)"
+	cd $(WRKBUILD); env PYTHONPATH=$(PYTHON_LIBDIR) $(PYTHON) ./setup.py install --prefix="$(WRKINST)/usr"
+
+do-install:
+	$(INSTALL_DIR) $(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
+	$(CP) $(WRKINST)/usr/lib/python$(PYTHON_VERSION)/* \
+		$(IDIR_PYREX)/usr/lib/python$(PYTHON_VERSION)
+
+include ${TOPDIR}/mk/pkg-bottom.mk