X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mailauth3.nine.ch (mailauth3.nine.ch [94.230.211.187]) by lists.alpinelinux.org (Postfix) with ESMTP id 2F2865C41E5 for ; Tue, 24 Jan 2017 15:16:02 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mailauth3.nine.ch (Postfix) with ESMTP id 8934C11F7C7; Tue, 24 Jan 2017 16:16:01 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mailauth3.nine.ch X-Spam-Flag: NO X-Spam-Score: -0.999 X-Spam-Level: X-Spam-Status: No, score=-0.999 tagged_above=-999 required=5.8 tests=[ALL_TRUSTED=-1, HEADER_FROM_DIFFERENT_DOMAINS=0.001] autolearn=disabled Received: from mailauth3.nine.ch ([127.0.0.1]) by localhost (mailauth3.nine.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id efuS-hdv_2AV; Tue, 24 Jan 2017 16:16:00 +0100 (CET) Received: from vimes (174.180.4.85.dynamic.wline.res.cust.swisscom.ch [85.4.180.174]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: pf@1042.ch) by mailauth3.nine.ch (Postfix) with ESMTPSA; Tue, 24 Jan 2017 16:16:00 +0100 (CET) Received: by vimes (Postfix, from userid 1000) id 5080682CC9; Tue, 24 Jan 2017 16:16:00 +0100 (CET) From: Jean-Louis Fuchs To: alpine-aports@lists.alpinelinux.org Cc: Jean-Louis Fuchs Subject: [alpine-aports] [PATCH] testing/lablgtk: new aport Date: Tue, 24 Jan 2017 16:15:36 +0100 Message-Id: <20170124151536.4587-1-ganwell@fangorn.ch> X-Mailer: git-send-email 2.11.0 In-Reply-To: <1485169970.11710.3.camel@gmail.com> References: <1485169970.11710.3.camel@gmail.com> X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- Since ocaml can use the library either at run-time (interpreter) like a python-module or to do native compile: I disabled the -dev split. Please review. testing/lablgtk/APKBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 testing/lablgtk/APKBUILD diff --git a/testing/lablgtk/APKBUILD b/testing/lablgtk/APKBUILD new file mode 100644 index 0000000000..81dce38d9e --- /dev/null +++ b/testing/lablgtk/APKBUILD @@ -0,0 +1,44 @@ +# Contributor: Jean-Louis Fuchs +# Maintainer: Jean-Louis Fuchs +pkgname=lablgtk +pkgver=2.18.5 +pkgrel=0 +pkgdesc="LablGtk - an OCaml interface to GTK+ 2.x" +url="http://lablgtk.forge.ocamlcore.org/" +arch="all" +license="GPL" +# Most files are used for run-time and/or native-compile, so we don't do +# a dev split +depends="ocaml-findlib camlp4 ocaml gtk+-dev gtkspell-dev librsvg-dev + gtksourceview2-dev" +makedepends="$depends" +install="" +subpackages="$pkgname-doc" +source="https://forge.ocamlcore.org/frs/download.php/1627/lablgtk-$pkgver.tar.gz" +builddir="$srcdir/lablgtk-$pkgver" + +build() { + cd "$builddir" + ./configure --prefix=/usr || return 1 + make world || return 1 + make opt || return 1 + make doc || return 1 +} + + +doc() { + pkgdesc="$pkgdesc (documentation)" + _docdir="$subpkgdir"/usr/share/doc/$pkgname/ + mkdir -p "$_docdir" + cp -r "$builddir"/doc/html/* "$_docdir" +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/ocaml/ld.conf +} + +md5sums="43eb7062439f7ddd0d8ad96c3e3b87dd lablgtk-2.18.5.tar.gz" +sha256sums="2bf251db21c077fdd26c035ea03edd8fe609187f908e520e87a8ffdd9c36d233 lablgtk-2.18.5.tar.gz" +sha512sums="7b6ba1a4dfa82cc3bbc502082ff4fccc23cc06ee4f30d01a2e423f3f99e945a4befe450d230b5aa19c5b810e9f46f2838655099d49da2db7c8a2e52eac213024 lablgtk-2.18.5.tar.gz" -- 2.11.0 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---