X-Git-Url: https://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/db8f3fcec52aad7a56b031094c32cb52a485f85b..1fa5a99cad3aeb41b558a398bb419b7790540731:/dev-util/cdecl99/cdecl99-1.2.ebuild diff --git a/dev-util/cdecl99/cdecl99-1.2.ebuild b/dev-util/cdecl99/cdecl99-1.2.ebuild new file mode 100644 index 0000000..c4a1d0d --- /dev/null +++ b/dev-util/cdecl99/cdecl99-1.2.ebuild @@ -0,0 +1,32 @@ +# Copyright © 2021-2022 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 nls readline" + +RDEPEND="nls? ( virtual/libintl ) + readline? ( sys-libs/readline:= )" +DEPEND="$RDEPEND" + +src_configure () { + econf \ + --enable-shared $(use_enable static-libs static) \ + $(use_with readline) \ + $(use_enable nls) +} + +src_install () { + default + + use static-libs || find "$ED" -name '*.la' -delete +}