aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-01-20 13:02:43 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-01-20 13:02:43 +0000
commitec681e067927337a44f943a1b03bf16452f5261b (patch)
tree33b38288fe3212a107d0c32dc76ad4415bc9d77b /main
parent455cc634b179a0782cfce3e9c35fe092bc54d4b4 (diff)
downloadaports-ec681e067927337a44f943a1b03bf16452f5261b.tar.bz2
aports-ec681e067927337a44f943a1b03bf16452f5261b.tar.xz
main/jemalloc: move from testing
Diffstat (limited to 'main')
-rw-r--r--main/jemalloc/APKBUILD54
-rw-r--r--main/jemalloc/jemalloc-no-pprof.patch11
2 files changed, 65 insertions, 0 deletions
diff --git a/main/jemalloc/APKBUILD b/main/jemalloc/APKBUILD
new file mode 100644
index 0000000000..13a0fa80c9
--- /dev/null
+++ b/main/jemalloc/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=jemalloc
+pkgver=3.6.0
+pkgrel=1
+pkgdesc="A general purpose malloc(3) implementation"
+url="http://www.canonware.com/jemalloc/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.canonware.com/download/jemalloc/$pkgname-$pkgver.tar.bz2
+ jemalloc-no-pprof.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="e76665b63a8fddf4c9f26d2fa67afdf2 jemalloc-3.6.0.tar.bz2
+4619ff9178f3218dd142d43e5d9f5c46 jemalloc-no-pprof.patch"
+sha256sums="e16c2159dd3c81ca2dc3b5c9ef0d43e1f2f45b04548f42db12e7c12d7bdf84fe jemalloc-3.6.0.tar.bz2
+a001510da976d20ba13a9e0d027212a1a62cf574e462850f6764636f23b6a79c jemalloc-no-pprof.patch"
+sha512sums="ebe7c64558a87a735b5906d5cb7527c241664eeae7328538675a12eabe7a1004be0f8766a3bd2a78e61334b196ca7ffc0ee8b8ff59167922a35f126cd1e76e43 jemalloc-3.6.0.tar.bz2
+a97c4eb504f8eb725fdd65683b512ea69773f1a183020a785cd02c5ac7e174a7206bf921a30ce63e5b183ef7bef34cec28ccdb57e16dfebd33f5a8161af2989d jemalloc-no-pprof.patch"
diff --git a/main/jemalloc/jemalloc-no-pprof.patch b/main/jemalloc/jemalloc-no-pprof.patch
new file mode 100644
index 0000000000..5dbbd9f6a5
--- /dev/null
+++ b/main/jemalloc/jemalloc-no-pprof.patch
@@ -0,0 +1,11 @@
+--- a/Makefile.in.orig
++++ b/Makefile.in
+@@ -319,7 +319,7 @@ done
+
+ install_doc: install_doc_html install_doc_man
+
+-install: install_bin install_include install_lib install_doc
++install: install_include install_lib install_doc
+
+ tests_unit: $(TESTS_UNIT:$(srcroot)%.c=$(objroot)%$(EXE))
+ tests_integration: $(TESTS_INTEGRATION:$(srcroot)%.c=$(objroot)%$(EXE))