diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-06-30 14:21:36 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-06-30 14:21:36 -0500 |
commit | 9e2ed2616e2e5058dded28a2d4358f0ef67fe7c1 (patch) | |
tree | 480daac5797366ae85e8843a7f209c65286145cf | |
parent | 151142d5b5e94e6bb9d847a313647bf960457f94 (diff) | |
parent | a7792e3d801561151cfa10887ca95c86d54efd6b (diff) | |
download | aports-9e2ed2616e2e5058dded28a2d4358f0ef67fe7c1.tar.bz2 aports-9e2ed2616e2e5058dded28a2d4358f0ef67fe7c1.tar.xz |
Merge git://git.alpinelinux.org/fcolista/aports-fcolista
-rw-r--r-- | testing/calibre/APKBUILD | 38 | ||||
-rw-r--r-- | testing/py-beautifulsoup/APKBUILD | 22 | ||||
-rw-r--r-- | testing/py-cherrypy/APKBUILD | 26 | ||||
-rw-r--r-- | testing/py-lxml/APKBUILD | 2 | ||||
-rw-r--r-- | testing/py-mechanize/APKBUILD | 23 |
5 files changed, 110 insertions, 1 deletions
diff --git a/testing/calibre/APKBUILD b/testing/calibre/APKBUILD new file mode 100644 index 0000000000..843eba3ae6 --- /dev/null +++ b/testing/calibre/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: +pkgname=calibre +pkgver=0.8.7 +pkgrel=0 +pkgdesc="Ebook management application" +url="http://calibre-ebook.com/" +arch="all" +license="GPL3" +depends= +depends_dev="python-dev imagemagick-dev py-qt py-sip py-imaging libusb-dev poppler-dev poppler-qt4-dev py-dbus py-pycountry py-lxml icu-dev desktop-file-utils py-sqlite sqlite-dev chmlib-dev podofo-dev py-sip-dev py-importlib py-dateutil py-cherrypy py-beautifulsoup py-mechanize" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz" +_builddir="$srcdir"/$pkgname +build() { + cd "$_builddir" + rm -rf src/cherrypy + sed -i -e "s/ldflags = shlex.split(ldflags)/ldflags = shlex.split(ldflags) + ['-fPIC']/" setup/extensions.py + sed -i -e 's:\(#!/usr/bin/env[ ]\+python$\|#!/usr/bin/python$\):\12:g' \ + $(find . -regex ".*.py\|.*.recipe") + python setup.py build + python setup.py resources + python setup.py translations +} + +package() { + cd "$_builddir" + # Fix the environment module location + sed -i -e "s|(prefix=.*)|(prefix='$pkgdir/usr')|g" setup/install.py + install -d "${pkgdir}/usr/lib/python2.7/site-packages" + python setup.py install --root="${pkgdir}" --prefix=/usr \ + --staging-bindir="${pkgdir}/usr/bin" \ + --staging-libdir="${pkgdir}/usr/lib" \ + --staging-sharedir="${pkgdir}/usr/share" +} +md5sums="d7132ec75f5e742e04e196fc8e2c0884 calibre-0.8.7.tar.gz" diff --git a/testing/py-beautifulsoup/APKBUILD b/testing/py-beautifulsoup/APKBUILD new file mode 100644 index 0000000000..795edd02ec --- /dev/null +++ b/testing/py-beautifulsoup/APKBUILD @@ -0,0 +1,22 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: +pkgname=py-beautifulsoup +_pkgname=BeautifulSoup +pkgver=3.2.0 +pkgrel=0 +pkgdesc="A Python HTML/XML parser designed for quick turnaround projects like screen-scraping" +url="http://www.crummy.com/software/BeautifulSoup/index.html" +arch="noarch" +license="BSD" +depends= +depends_dev="python-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://www.crummy.com/software/BeautifulSoup/download/3.x/$_pkgname-$pkgver.tar.gz" +_builddir="$srcdir"/$_pkgname-$pkgver +package() { + cd "$_builddir" + python setup.py install --root=$pkgdir +} +md5sums="ef1e78f7689ea61314f7bddebcfde88c BeautifulSoup-3.2.0.tar.gz" diff --git a/testing/py-cherrypy/APKBUILD b/testing/py-cherrypy/APKBUILD new file mode 100644 index 0000000000..6d1ab683f5 --- /dev/null +++ b/testing/py-cherrypy/APKBUILD @@ -0,0 +1,26 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: +pkgname=py-cherrypy +_pkgname=CherryPy +pkgver=3.2.0 +pkgrel=0 +pkgdesc="A pythonic, object-oriented web development framework" +url="http://www.cherrypy.org" +arch="noarch" +license="BSD" +depends= +depends_dev="python-dev" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://mirror.its.uidaho.edu/pub/gentoo/distfiles/$_pkgname-$pkgver.tar.gz" +# The real source is the following: +#http://download.cherrypy.org/cherrypy/$pkgver/$_pkgname-$pkgver.tar.gz" +#but seems not available atm +_builddir="$srcdir"/$_pkgname-$pkgver +package() { + cd "$_builddir" + python setup.py install --root=$pkgdir + install -Dm644 py2/cherrypy/LICENSE.txt ${pkgdir}/usr/share/licenses/custom/${pkgname}/license +} +md5sums="e5c1322bf5ce962c16283ab7a6dcca3f CherryPy-3.2.0.tar.gz" diff --git a/testing/py-lxml/APKBUILD b/testing/py-lxml/APKBUILD index 886f514963..5830a93488 100644 --- a/testing/py-lxml/APKBUILD +++ b/testing/py-lxml/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-lxml _pkgname=lxml pkgver=2.2.8 -pkgrel=0 +pkgrel=1 pkgdesc="Python LXML Library" url="http://codespeak.net/lxml" arch="all" diff --git a/testing/py-mechanize/APKBUILD b/testing/py-mechanize/APKBUILD new file mode 100644 index 0000000000..0fdad0c25b --- /dev/null +++ b/testing/py-mechanize/APKBUILD @@ -0,0 +1,23 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: +pkgname=py-mechanize +_pkgname=mechanize +pkgver=0.2.4 +pkgrel=0 +pkgdesc="Stateful programmatic web browsing in Python" +url="http://wwwsearch.sourceforge.net/mechanize/" +arch="noarch" +license="BSD ZPL" +depends= +depends_dev="python-dev py-setuptools" +makedepends="$depends_dev" +install="" +subpackages="" +source="http://wwwsearch.sourceforge.net/$_pkgname/src/$_pkgname-$pkgver.tar.gz" +_builddir="$srcdir"/$_pkgname-$pkgver +package() { + cd "$_builddir" + python setup.py install --root=$pkgdir + install -Dm644 COPYING.txt ${pkgdir}/usr/share/licenses/custom/${pkgname}/COPYING.txt +} +md5sums="0c1c3cec1c6d7b5d87662a069f04eb8d mechanize-0.2.4.tar.gz" |