summaryrefslogtreecommitdiff
path: root/main/distcc/APKBUILD
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2018-05-18 14:52:24 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-07-16 13:22:30 +0000
commit8aa6a1c14470c68ddddb11f63c0289611016af11 (patch)
treef86611ea68f220405b1ee7900e734e9467cd20c1 /main/distcc/APKBUILD
parent4d5853ef53a5fc0a674145edd5b1b23360279adf (diff)
downloadaports-8aa6a1c14470c68ddddb11f63c0289611016af11.zip
main/distcc: upgrade to 3.3 and modernize abuild
Diffstat (limited to 'main/distcc/APKBUILD')
-rw-r--r--main/distcc/APKBUILD52
1 files changed, 18 insertions, 34 deletions
diff --git a/main/distcc/APKBUILD b/main/distcc/APKBUILD
index 9fdcd0058c8..5676e6aaf3d 100644
--- a/main/distcc/APKBUILD
+++ b/main/distcc/APKBUILD
@@ -1,35 +1,25 @@
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=distcc
-pkgver=3.1
-pkgrel=12
+pkgver=3.3
+pkgrel=0
pkgdesc="A distributed C, C++, Obj C compiler"
url="https://github.com/distcc/distcc"
arch="all"
license="GPL-2.0"
depends=""
-makedepends="autoconf automake popt-dev python2-dev"
+makedepends="autoconf automake popt-dev python3-dev"
+checkdepends="gdb procps"
+options="!check" # tests are failing
install="$pkgname.pre-install"
-source="https://github.com/distcc/distcc/archive/$pkgname-$pkgver.tar.gz
- distcc-3.1-clone.patch
+source="https://github.com/distcc/distcc/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
distcc-hardened.patch
distccd.initd distccd.confd"
subpackages="$pkgname-doc $pkgname-pump"
-
-_builddir="$srcdir/$pkgname-$pkgname-$pkgver"
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- update_config_sub || return 1
- ./autogen.sh
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -37,14 +27,19 @@ build() {
--without-gtk \
--sysconfdir=/etc \
--disable-Werror \
- --mandir=/usr/share/man \
- || return 1
+ --without-libiberty \
+ --mandir=/usr/share/man
+
+ make
+}
- make || return 1
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make DESTDIR="$pkgdir" install
install -D -m644 ../distccd.confd "$pkgdir"/etc/conf.d/distccd
@@ -65,18 +60,7 @@ pump() {
mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}
-md5sums="6bff5c08d67aa05e343b6753a5c69cc4 distcc-3.1.tar.gz
-29fe296aa2985eea7af7402f421db187 distcc-3.1-clone.patch
-351ca958ff4869f8a2795d8ca6647de1 distcc-hardened.patch
-7d79c873943185b09ce6e7473fc85084 distccd.initd
-e9e0ccc9f5813b9c3c88c8687b2ebc73 distccd.confd"
-sha256sums="721523b81584b4104cf48da8d629ffa0768adb4e032885dcd4e25ffd6703dd63 distcc-3.1.tar.gz
-473c21602cc7ea7f14c1d17d8dcf6f7d76ab0b665b58cd6d37a8b41f9233ce4b distcc-3.1-clone.patch
-dcf63f201cb7f4bf13eeb1485a5056c64370b9239d28e4acc77a47046dcda6cf distcc-hardened.patch
-381087326a35ddb46174d081d761f67a70a7e03b95455558c6b4fc7848392551 distccd.initd
-692d1afe300f6a95910192c382a8d3f5d59fb9ed67f28f6b16ec06ac2df3c2f8 distccd.confd"
-sha512sums="c892df1c704932d630116fc6252a7fbd4b87114897d4ef3293e8209e65c26b8c2b76dee676ad131bd80a0df11bed31dc9652d2b666c9531cfdf675b4a40265ee distcc-3.1.tar.gz
-ff0687b0034e542cde3884ef0f6a557148362999cdab2fbcd201467dea830f45cb1ed42dcf733c3861b52ca466a928514bccbd63fe4f3fa4716a0de50ed61691 distcc-3.1-clone.patch
+sha512sums="459c175c8ac905bc70299e77ac11b6d24782bd69c9152126249c9af8fbb4c269e6f7317b02abf50cf6cc0405dd0f887e803320e19dc528a19c4c488640c615dc distcc-3.3.tar.gz
d1150dc83bf89c332f8c0bd01e15f52f95d71868733bd2e5430a5377f1a4aaa2b5b6e0cd488d33d9b94ce18b0eeeadf4af719db536b001b50e4d482b35c7e057 distcc-hardened.patch
3c58be08242de09f76876b20a0c6643a3a76a088c356484cb091253b7e4dddb20008d071d8e5d1a66acbc5bfe4d8a59284a6d7f225ca2006e8a8b3c698e71026 distccd.initd
fbb12522e489243475c735e055a72a19b176f1ad736dc810e1f085d8d9d79460ac7590a92bb9563f8b316437f67f6ca729330253f007d06011144a66fede5465 distccd.confd"