X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id B7771DC095B for ; Mon, 16 May 2016 03:30:38 +0000 (UTC) Received: from mail-ig0-f174.google.com (mail-ig0-f174.google.com [209.85.213.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 75D27DC0115 for ; Mon, 16 May 2016 03:30:38 +0000 (UTC) Received: by mail-ig0-f174.google.com with SMTP id m9so33734804ige.1 for ; Sun, 15 May 2016 20:30:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=W2y0KDWbsKMJ7e0540jqd4++Ck4SLIsAI1clY14viM8=; b=b+q5axlBRGLw1Swkwm7pRaG7WAVAFsgnBLfTTbKBDt7ze/MeIyk9qEUYcJgM6D1RpJ y4HUhjQ3dim6p1FEqpGpkTFBjPVAcJZpG8mpuJoXi97u3aN57d6O+V3mdmaIp4SZSlVk X4OX+6RX5oq7lGZCSwPJ5sSLg5AKMwEDOhn8gA2elGPGOwwnLNBm2VRL3hgXyyc3GKu9 Ho8YlOIfLHYqdTAOhM1YNQI9i7+mZn6tyUceYS3lMUlDffB6unz7mfMplpyrZfHSp49v dqixDw+MLAJpCgM45Rubslj+io950XiMLx10sdaSByFCu+PvMcXP1v7/6KQNPAyQOQBh 3ziQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=W2y0KDWbsKMJ7e0540jqd4++Ck4SLIsAI1clY14viM8=; b=lbh2XToq2GhX5yiJDCBzHawAlfEjgDuv8/ljV62R7LfDRomgWcv+Br+tiABEq9OfsT 4HHdpwNF3M716hVx9QaDsDt4bISZBcXwcV+B36n6Wv7bv1A5XsZainKPJbSXnSvlqtxD 1HjnbUY+YH/lBia9IyGz7hstqIWf/euGWp8aXceJIPkyVELwssu3BV/Fxalb2ubd6VxH Tt3pSI3zIGQ2Y8fe7KZyMZgjL518DBuKwKYJSBsebIqLGVwRcNwop+16UsLYfqxrBSTo djECESP4dL0x9QCyPhQcpHtJYYjqHs9+BbXSLH0DW/ElVJ+IKit7k7q7Cb9iSS1oWd4Y q4zQ== X-Gm-Message-State: AOPr4FUG3HwYvpB7Nr1MneuXTuTnMltckEAKr46emTEnyO0ECMDPl4i5ndB6/nsGJaIweQ== X-Received: by 10.50.12.73 with SMTP id w9mr9361881igb.84.1463369438155; Sun, 15 May 2016 20:30:38 -0700 (PDT) Received: from mb.lan (c-73-24-18-171.hsd1.mn.comcast.net. [73.24.18.171]) by smtp.gmail.com with ESMTPSA id xp13sm4883406igc.19.2016.05.15.20.30.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 15 May 2016 20:30:37 -0700 (PDT) From: Mitch Tishmack To: alpine-aports@lists.alpinelinux.org Cc: Mitch Tishmack Subject: [alpine-aports] [PATCH 4/4] testing/cabal new aport Date: Sun, 15 May 2016 22:30:18 -0500 Message-Id: <1463369418-51523-5-git-send-email-mitch.tishmack@gmail.com> X-Mailer: git-send-email 2.8.0 In-Reply-To: <1463369418-51523-1-git-send-email-mitch.tishmack@gmail.com> References: <1463369418-51523-1-git-send-email-mitch.tishmack@gmail.com> X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/cabal/APKBUILD | 53 ++++++++++++++++++++++++++++ testing/cabal/cabal-0001-force-ld.gold.patch | 10 ++++++ 2 files changed, 63 insertions(+) create mode 100644 testing/cabal/APKBUILD create mode 100644 testing/cabal/cabal-0001-force-ld.gold.patch diff --git a/testing/cabal/APKBUILD b/testing/cabal/APKBUILD new file mode 100644 index 0000000..2b6a389 --- /dev/null +++ b/testing/cabal/APKBUILD @@ -0,0 +1,53 @@ +# Maintainer: Mitch Tishmack +pkgname=cabal +pkgver=1.24.0.0 +pkgrel=0 +pkgdesc="The Haskell Cabal" +url="http://haskell.org" +arch="x86_64 armhf" +license="bsd3" +depends="musl zlib gmp" +makedepends="ghc ghc-dev binutils-gold chrpath" +install="" +subpackages="" +source=" + https://www.haskell.org/$pkgname/release/$pkgname-install-$pkgver/$pkgname-install-$pkgver.tar.gz + cabal-0001-force-ld.gold.patch +" +_builddir="$srcdir/$pkgname-install-$pkgver" + +prepare() { + cd "$_builddir" || return 1 + for i in $source; do + case $i in + cabal-*.patch) + msg "Applying $i..." + patch -s -p0 -N -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$_builddir" + ( + export HOME="$_builddir" + export NO_DOCUMENTATION=1 + export EXTRA_BUILD_OPTS="--ghc-option=-fPIC" + ./bootstrap.sh || return 1 + ) || return 1 +} + +package() { + cd "$_builddir" + install -d "$pkgdir/usr/bin" || return 1 + install -m755 "$_builddir/dist/build/cabal/cabal" "$pkgdir/usr/bin/cabal" || return 1 + chrpath -d "$pkgdir/usr/bin/cabal" || return 1 + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1 +} +md5sums="beb998cdc385523935620381abe393f4 cabal-install-1.24.0.0.tar.gz +e64c6868b8696f8d49945900af80b30c cabal-0001-force-ld.gold.patch" +sha256sums="d840ecfd0a95a96e956b57fb2f3e9c81d9fc160e1fd0ea350b0d37d169d9e87e cabal-install-1.24.0.0.tar.gz +74a2516bbcb5c7a5a9c8d7633630ce5b3397e160bd0e0c06fd10f104ac08002f cabal-0001-force-ld.gold.patch" +sha512sums="0bbd217259e6cd953731179e89dd0b9c972e8634c78d1270c9141daf8be4c53f4817812c93bec86c3cbaf5cc3467497137a4d30c0c594cc27204f0e9aebe6830 cabal-install-1.24.0.0.tar.gz +35a9127f9aa5689047fbb3ad8757c3c0a3834c15f90d764edcb9ca24652f271c180458715c447d550f5329c0e2368207502318e4ae31292e593c667eeb79d386 cabal-0001-force-ld.gold.patch" diff --git a/testing/cabal/cabal-0001-force-ld.gold.patch b/testing/cabal/cabal-0001-force-ld.gold.patch new file mode 100644 index 0000000..86ed3a3 --- /dev/null +++ b/testing/cabal/cabal-0001-force-ld.gold.patch @@ -0,0 +1,10 @@ +--- bootstrap.sh.original 2016-02-10 06:45:52.000000000 -0600 ++++ bootstrap.sh 2016-03-18 23:28:06.000000000 -0500 +@@ -74,6 +74,7 @@ + + # Fall back to "ld"... might work. + [ -$LINK- = -""- ] && LINK=ld ++LINK="ld.gold" + + # And finally, see if we can compile and link something. + echo 'int main(){}' | $CC -xc - -o /dev/null || -- 2.8.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---