X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mvs-tech.com (unknown [69.162.133.222]) by mail.alpinelinux.org (Postfix) with ESMTP id 28E72DC00D9 for ; Thu, 12 Apr 2012 02:53:45 +0000 (UTC) Received: from mp5build.gateway.2wire.net (99-59-223-143.lightspeed.jcvlfl.sbcglobal.net [99.59.223.143]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: admin@mp5.im) by mvs-tech.com (Postfix) with ESMTPSA id 5288546018; Thu, 12 Apr 2012 02:53:15 +0000 (UTC) From: Borys Zhukov To: alpine-devel@lists.alpinelinux.org Cc: Borys Zhukov Subject: [alpine-devel] [PATCH] testing/ocaml: new aport Date: Thu, 12 Apr 2012 02:53:10 +0000 Message-Id: <1334199190-28928-1-git-send-email-mp5@mp5.im> X-Mailer: git-send-email 1.7.9.6 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/ocaml/APKBUILD | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 testing/ocaml/APKBUILD diff --git a/testing/ocaml/APKBUILD b/testing/ocaml/APKBUILD new file mode 100644 index 0000000..42c837f --- /dev/null +++ b/testing/ocaml/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Borys Zhukov +# Maintainer: Borys Zhukov +pkgname=ocaml +pkgver=3.12.1 +pkgrel=0 +pkgdesc="Main implementation of the Caml programming language" +url="http://caml.inria.fr" +arch="all" +license="QPL/GPLv2" +depends="gdbm" +depends_dev="ncurses" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-doc" +source="http://caml.inria.fr/pub/distrib/ocaml-3.12/$pkgname-$pkgver.tar.gz + " + +_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 -bindir /usr/bin \ + -libdir /usr/lib/ocaml \ + -mandir /usr/share/man \ + -no-tk \ + || return 1 + make -j1 world.opt || return 1 +} + +package() { + cd "$_builddir" + make BINDIR="$pkgdir"/usr/bin LIBDIR="$pkgdir"/usr/lib/ocaml MANDIR="$pkgdir"/usr/share/man install || return 1 + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + install -Dm644 INSTALL "$pkgdir"/usr/share/doc/$pkgname/INSTALL + install -Dm644 Changes "$pkgdir"/usr/share/doc/$pkgname/Changes + install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README + + find "$pkgdir"/usr/lib/ocaml -name \*.ml -delete +} +md5sums="814a047085f0f901ab7d8e3a4b7a9e65 ocaml-3.12.1.tar.gz" -- 1.7.9.6 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---