summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-14 03:00:42 -0800
committerroot <root@rshg054.dnsready.net>2012-12-14 03:00:42 -0800
commit1b9faba25721b73f30e49f0cea9c7346eedd0f73 (patch)
treed11a95f4a93414017b006abf78931d98c1695020 /libre
parent1517345ab70f42a5e050f3dc9b498038118f9ff1 (diff)
Fri Dec 14 02:55:25 PST 2012
Diffstat (limited to 'libre')
-rw-r--r--libre/django-countries/PKGBUILD26
-rw-r--r--libre/parabolaweb-utils/PKGBUILD9
-rw-r--r--libre/parabolaweb-utils/helper.sh2
3 files changed, 33 insertions, 4 deletions
diff --git a/libre/django-countries/PKGBUILD b/libre/django-countries/PKGBUILD
new file mode 100644
index 000000000..24b667a67
--- /dev/null
+++ b/libre/django-countries/PKGBUILD
@@ -0,0 +1,26 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=django-countries
+pkgver=1.5
+pkgdesc="Provides a country field for Django models"
+license=('custom:MIT')
+url="http://bitbucket.org/smileychris/django-countries/"
+
+pkgrel=1
+arch=(any)
+depends=('django')
+makedepends=('python2-distribute')
+source=(http://pypi.python.org/packages/source/${pkgname:0:1}/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=(6c65fcc3aa7de065a54cdb619397626d)
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ sed -i 's|#!/usr/bin/env python\s*$|#!/usr/bin/env python2|' setup.py */bin/*.py
+ # fix python->python2, and a typo!
+ sed -i 's|python regen[a-z]*\.py|python2 regenerage.py|' */bin/regenerate.py
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./setup.py install --root="$pkgdir/" --optimize=1
+}
diff --git a/libre/parabolaweb-utils/PKGBUILD b/libre/parabolaweb-utils/PKGBUILD
index e3d9444ce..4220394dc 100644
--- a/libre/parabolaweb-utils/PKGBUILD
+++ b/libre/parabolaweb-utils/PKGBUILD
@@ -6,12 +6,14 @@
# _get_depends_nover (no version requirements)
pkgname=parabolaweb-utils
-pkgver=20121115.1554
-pkgrel=1
+pkgver=20120425.0657
pkgdesc="Utils for the Parabola website"
-arch=('any')
url="https://projects.parabolagnulinux.org/parabolaweb.git/"
license=('GPL2')
+
+pkgrel=1
+epoch=1
+arch=('any')
depends=(
'python2' # duh
'python2-flup' # for fcgi
@@ -19,6 +21,7 @@ depends=(
'git' # used in parabolaweb-download
'libretools' # used in parabolaweb-{download,update} (libremessages)
`_get_depends`)
+conflicts=('django>=1.5') # hold it at 1.4
makedepends=(makepkg-git)
backup=('etc/conf.d/parabolaweb')
diff --git a/libre/parabolaweb-utils/helper.sh b/libre/parabolaweb-utils/helper.sh
index 5212571a8..ce8638e7e 100644
--- a/libre/parabolaweb-utils/helper.sh
+++ b/libre/parabolaweb-utils/helper.sh
@@ -13,7 +13,7 @@ _get_depends() {
if [[ -f "${srcdir:-${startdir:-.}/src}/parabolaweb/requirements_prod.txt" ]]; then
pushd "${srcdir:-src}" >/dev/null
< parabolaweb/requirements_prod.txt sed -r \
- -e 's/.*/\L&/' -e 's/==/=/' \
+ -e 's/.*/\L&/' -e 's/==/>=/' \
-e 's/^(python2?-)?/python2-/' \
-e 's/python2-django/django/'
popd >/dev/null