]> git.draconx.ca Git - gentoo-draconx.git/commitdiff
Add ebuild for cdecl99.
authorNick Bowler <nbowler@draconx.ca>
Wed, 3 Mar 2021 03:02:18 +0000 (22:02 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 3 Mar 2021 03:02:18 +0000 (22:02 -0500)
dev-util/cdecl99/Manifest [new file with mode: 0644]
dev-util/cdecl99/cdecl99-1.ebuild [new file with mode: 0644]

diff --git a/dev-util/cdecl99/Manifest b/dev-util/cdecl99/Manifest
new file mode 100644 (file)
index 0000000..28701ae
--- /dev/null
@@ -0,0 +1,2 @@
+DIST cdecl99-1.tar.xz 561024 BLAKE2B 06529720aaa5956158798f43c3a0bd416916a35c58d37ec0552dee7a09881cfde07147d700808636a80babcdf3b69852ee63000c1102afb856e36daf5273aa80 SHA512 6cf7a6570862ab2b6fcc992a50732a3d198f55b92be2524983755ae492fffb9f00146f5866415c23a17e806ff99b0825a3d92ee27935aef07b8069a543baf63c
+EBUILD cdecl99-1.ebuild 983 BLAKE2B 7aeac8e288503e90380bec97a95f914d387f8a79b7d80cd925ec934b6e0743d080fc416576feb2112d90d2afa22ccd91a9216a2ceff1d715e1821e4be2af4de0 SHA512 60b87931aa6fa5055907942916292cb99fc125c5b7259f66f076f0d146e24131c55c3b2037c6a7f8bf930c221c86e41c438d483b980d6c1cf5d01d1215d19554
diff --git a/dev-util/cdecl99/cdecl99-1.ebuild b/dev-util/cdecl99/cdecl99-1.ebuild
new file mode 100644 (file)
index 0000000..85e8370
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright © 2021 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or any later version.
+# This is free software: you are free to change and redistribute it.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=7
+
+DESCRIPTION="Explain and construct C declarations"
+HOMEPAGE="http://draconx.ca/projects/cdecl99/"
+SRC_URI="http://draconx.ca/archive/$PN/$P.tar.xz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs test nls readline"
+
+BDEPEND="test? ( virtual/pkgconfig )"
+RDEPEND="nls? ( virtual/libintl )
+       readline? ( sys-libs/readline:= )"
+DEPEND="$RDEPEND
+       test? ( sci-libs/gsl )"
+
+src_configure () {
+       econf \
+               --enable-shared $(use_enable static-libs static) \
+               $(usex !readline gl_cv_lib_readline=no '') \
+               $(use_enable nls)
+}
+
+src_test () {
+       # testcase compilation currently busted with -Wl,--as-needed
+       emake LDFLAGS='-Wl,--no-as-needed' check
+}
+
+src_install () {
+       default
+
+       use static-libs || find "$ED" -name '*.la' -delete
+}