X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by lists.alpinelinux.org (Postfix) with ESMTP id 9EC745C41D2 for ; Fri, 29 Jul 2016 13:25:03 +0000 (GMT) Received: by mail-wm0-f66.google.com with SMTP id x83so15713172wma.3 for ; Fri, 29 Jul 2016 06:25:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leishman.org; s=google; h=from:to:subject:date:message-id; bh=Kn/gl0Una0ZWY3/345VZ99BApZHi3RE/4PONDv4XohE=; b=tWcN8aGAlCDVHBgiS6o/F2ychT9cdJ+5wXxOEWSN/pA2CfYfE+5NvUehikcXzsBMDW ua2P6wdz5tXfKksj/r3rLN6dmIgb1+DmokRIhDZPW9yROZOZweT6rBxdmTCS0IyR613r dpgDsx9GEvP1LB0gF0UynuBBuP4sAcsWh7daY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=Kn/gl0Una0ZWY3/345VZ99BApZHi3RE/4PONDv4XohE=; b=ZtKV8P6LgezDgkldR5j/kOU7Cm9BHPhxnrY9/m40w+cbQxeEMxvWw9L5bOVSUfa5Nx h4tqUAa9u1izpQdvXJQR8kfE40xrAql2i7kxd75RCSGxYWRLTnetJWdMoCOYXGIyd51u NR1PqA9pZrWYCsu5mBU8/mEjb5CbqLXOH6vKDWYPM6BTDzlzzl75uqCjLN3CUVnheWav DQPdsHSWLOaBCAQjP0uMHAVGbFoT4FQ/VGnzrcuwLxKSWOqps0UIsWVWOc5kI00eeYxG E2v5ogTGp7gpsRDnyAfRPDPOF8DXeVCwC6hc8X5GQhSE7F3FyHC9jxbaKP5GaiqU/YpR Yb6A== X-Gm-Message-State: AEkoout9oGoMAkWXHBJPInsMhnci8S6wA44c/NinTVF7+WIbqdwsdChPb7DUqv/Dlq3O0g== X-Received: by 10.28.111.213 with SMTP id c82mr1116927wmi.47.1469798702415; Fri, 29 Jul 2016 06:25:02 -0700 (PDT) Received: from humia.fritz.box (p549FDF19.dip0.t-ipconnect.de. [84.159.223.25]) by smtp.gmail.com with ESMTPSA id v189sm3057733wmv.12.2016.07.29.06.25.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 29 Jul 2016 06:25:01 -0700 (PDT) From: Chris Leishman To: alpine-aports@lists.alpinelinux.org Subject: [alpine-aports] [PATCH 1/2] testing/libcypher-parser: new aport Date: Fri, 29 Jul 2016 15:24:59 +0200 Message-Id: <20160729132500.64587-1-chris@leishman.org> X-Mailer: git-send-email 2.9.2 X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: https://github.com/cleishm/libcypher-parser Parsing library for the Cypher query language --- testing/libcypher-parser/APKBUILD | 70 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 testing/libcypher-parser/APKBUILD diff --git a/testing/libcypher-parser/APKBUILD b/testing/libcypher-parser/APKBUILD new file mode 100644 index 0000000..5339894 --- /dev/null +++ b/testing/libcypher-parser/APKBUILD @@ -0,0 +1,70 @@ +# Contributor: Chris Leishman +# Maintainer: Chris Leishman +pkgname=libcypher-parser +pkgver=0.4.0 +pkgrel=0 +pkgdesc="Parsing library for the Cypher query language" +url="https://github.com/cleishm/libcypher-parser" +arch="all" +license="ASL 2.0" +depends="" +depends_dev="" +makedepends="$depends_dev automake autoconf libtool check-dev doxygen pkgconfig" +install="" +subpackages="$pkgname-dev $pkgname-doc cypher-lint cypher-lint-doc" +source="https://github.com/cleishm/libcypher-parser/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/"$pkgname-$pkgver" +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + || return 1 + make || return 1 + make check || return 1 + make doc || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + mkdir -p "$pkgdir"/usr/share/doc/libcypher-parser + mv doc/html/* "$pkgdir"/usr/share/doc/libcypher-parser/ +} + +doc() { + depends="$depends_doc" + pkgdesc="$pkgdesc (documentation)" + arch=${arch_doc:-"noarch"} + install_if="docs $pkgname=$pkgver-r$pkgrel" + + if [ "X$subpkgname" = "Xlibcypher-parser-doc" ]; then + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/doc "$subpkgdir"/usr/share/ + elif [ "X$subpkgname" = "Xcypher-lint-doc" ]; then + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/man "$subpkgdir"/usr/share/ + find "$subpkgdir"/usr/share/man/ -type f | xargs gzip -9 + else + die "Unknown doc package $pkgname" + fi + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir"/usr/share "$pkgdir"/usr 2>/dev/null + return 0 +} + +lint() { + pkgdesc="Lint tool for the Cypher query language" + + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/bin "$subpkgdir"/usr/ + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir"/usr/bin "$pkgdir"/usr 2>/dev/null + return 0 +} + +md5sums="f57255533ee103af66c16878b56e7943 libcypher-parser-0.4.0.tar.gz" +sha256sums="6aace038b74e2d1b0a95a88e8b1f7c89364235cf57c70ec7e358d1ff648d09a2 libcypher-parser-0.4.0.tar.gz" +sha512sums="1cb034c45e44c98f67422a155c54bcc01d7a8ed3dd7cf81dc10a1b380d15eba11c7d3cfc7e837926d84a501547275af6868a45da42d2535992fe648d2df8ad16 libcypher-parser-0.4.0.tar.gz" -- 2.9.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---