dev-util/conf2struct: 1.0 version bump
authorCraig Andrews <candrews@gentoo.org>
Wed, 4 Sep 2019 13:17:55 +0000 (09:17 -0400)
committerCraig Andrews <candrews@gentoo.org>
Wed, 4 Sep 2019 13:20:34 +0000 (09:20 -0400)
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Craig Andrews <candrews@gentoo.org>
dev-util/conf2struct/Manifest
dev-util/conf2struct/conf2struct-1.0.ebuild [new file with mode: 0644]

index 60764ee4874b8631cff3540714b01dc193490331..7a4049e5bb250876b51887ab6420ecd2b881b87a 100644 (file)
@@ -1 +1,2 @@
 DIST conf2struct-0_pre0.tar.gz 50851 BLAKE2B 21db6cca56ba18a48c65395fbf3def5de6190515be46ca2e7113c17c9b874cdcc7fb72b06b586c57a1803e98b56df5decd10ea1dd6dcc4144a78d6a0ff6bf9dd SHA512 e0eb1d43ec1375e65796197c16246a2cc38e0a4d078c4028e8675cc1ff6ef08c7802ec18f57232d91f2d4133573129f7a2b05a9f1d8b74bbddd072550f846b1d
+DIST conf2struct-1.0.tar.gz 57393 BLAKE2B 7de4be755ec764d96a321c68ca68b3156889e24f6894ba78b1c88cbeff84525331f1105040d61b1121ca01ece8d50a5aee2268eb73cde3ebbc8b62f679e2451b SHA512 31e8f350af740e79d97f4698dfec9b5e8a31a8a1cee30da0af753db26eda5b61379e9156e1cb492aef5068a4987d5e8202215323b83328e99705ae3ad3c09b81
diff --git a/dev-util/conf2struct/conf2struct-1.0.ebuild b/dev-util/conf2struct/conf2struct-1.0.ebuild
new file mode 100644 (file)
index 0000000..b853d93
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit flag-o-matic systemd toolchain-funcs
+
+DESCRIPTION="Create C parsers for libconfig and command-line"
+HOMEPAGE="https://github.com/yrutschle/conf2struct/"
+if [[ ${PV} == "9999" ]] ; then
+       EGIT_REPO_URI="https://github.com/yrutschle/conf2struct.git"
+       inherit git-r3
+else
+       KEYWORDS="~amd64"
+       SRC_URI="https://github.com/yrutschle/conf2struct/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+LICENSE="BSD-2"
+SLOT="0"
+IUSE=""
+
+RDEPEND="dev-libs/libconfig
+       dev-perl/Conf-Libconfig"
+DEPEND="${RDEPEND}"
+
+src_compile(){
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
+}
+
+src_install(){
+       emake DESTDIR="${D}" prefix="${EPREFIX%/}/usr" install
+}