summaryrefslogtreecommitdiff
path: root/community/camlp5
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-26 13:21:55 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-09-26 13:21:55 -0300
commit60e119a0f3297314f4bcd2b2b821eccd28992cd6 (patch)
tree83078f34ba0e5220164fe3f3b5cdff27ce87aaf9 /community/camlp5
parent8aa6cf7dacd74c155e7b2dd7af68a5cb4460e5b3 (diff)
parent21efc9511d14394cc1d8426e2e0a6c668964fbe9 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community-testing/lightspark/PKGBUILD community/camlp5/PKGBUILD community/gnote/PKGBUILD community/gtk-gnutella/PKGBUILD extra/ffmpeg/PKGBUILD extra/koffice/PKGBUILD extra/pyopenssl/PKGBUILD extra/virtuoso/PKGBUILD gnome-unstable/empathy/PKGBUILD gnome-unstable/epiphany/PKGBUILD gnome-unstable/folks/PKGBUILD gnome-unstable/gdm/PKGBUILD gnome-unstable/gjs/PKGBUILD gnome-unstable/gnome-games/PKGBUILD gnome-unstable/gnome-session/PKGBUILD gnome-unstable/gnome-shell/PKGBUILD gnome-unstable/gobject-introspection/PKGBUILD gnome-unstable/gthumb/PKGBUILD gnome-unstable/libgnomekbd/PKGBUILD gnome-unstable/libpeas/PKGBUILD gnome-unstable/mutter/PKGBUILD gnome-unstable/totem/PKGBUILD multilib/lib32-libffi/PKGBUILD multilib/wine/PKGBUILD testing/xorg-server/PKGBUILD
Diffstat (limited to 'community/camlp5')
-rw-r--r--community/camlp5/PKGBUILD33
1 files changed, 24 insertions, 9 deletions
diff --git a/community/camlp5/PKGBUILD b/community/camlp5/PKGBUILD
index ebf6bfc98..6582c4754 100644
--- a/community/camlp5/PKGBUILD
+++ b/community/camlp5/PKGBUILD
@@ -4,21 +4,36 @@
# Contributor: Massimiliano Brocchini <brocchini@netseven.it>
pkgname=('camlp5' 'camlp5-transitional')
-pkgver=6.02.3
-pkgrel=2
+_baseversion=6.02.3
+_patchlevel=1
+pkgver=${_baseversion}.${_patchlevel}
+pkgrel=1
arch=('i686' 'x86_64' 'mips64el')
url='http://pauillac.inria.fr/~ddr/camlp5/'
license=('BSD')
depends=('sh')
makedepends=('ocaml')
options=('!makeflags')
-source=("http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-${pkgver}.tgz")
-md5sums=('a4f5e0dc13c43d50eb655c8e929f556e')
+source=("http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-${_baseversion}.tgz")
+# upstream likes to release occasional patches instead of releasing new versions
+for i in $(seq ${_patchlevel}); do
+ source+=("http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-${_baseversion}-${i}")
+done
+md5sums=('a4f5e0dc13c43d50eb655c8e929f556e'
+ 'bd5afff0952b407bc63a7b1928e5d6d6')
build() {
- cp -r camlp5-${pkgver} camlp5-transitional-${pkgver}
+ cd camlp5-${_baseversion}
- cd ${srcdir}/camlp5-${pkgver}
+ for i in $(seq ${_patchlevel}); do
+ patch -Np0 -i ${srcdir}/patch-${_baseversion}-${i}
+ done
+
+ cd ${srcdir}
+
+ cp -r camlp5-${_baseversion} camlp5-transitional-${_baseversion}
+
+ cd ${srcdir}/camlp5-${_baseversion}
./configure \
-prefix '/usr' \
@@ -27,7 +42,7 @@ build() {
make world.opt
- cd ${srcdir}/camlp5-transitional-${pkgver}
+ cd ${srcdir}/camlp5-transitional-${_baseversion}
./configure \
-prefix '/usr' \
@@ -41,7 +56,7 @@ package_camlp5() {
pkgdesc='A preprocessor-pretty-printer of OCaml.'
conflicts=('camlp5-transitional')
- cd camlp5-${pkgver}
+ cd camlp5-${_baseversion}
make DESTDIR=${pkgdir} install
@@ -53,7 +68,7 @@ package_camlp5-transitional() {
pkgdesc='A preprocessor-pretty-printer of OCaml. (transitional)'
conflicts=('camlp5')
- cd camlp5-transitional-${pkgver}
+ cd camlp5-transitional-${_baseversion}
make DESTDIR=${pkgdir} install