app-misc/cdircmp: EAPI7, improve ebuild.
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>
Wed, 20 Jun 2018 19:55:06 +0000 (21:55 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 22 Jun 2018 22:17:04 +0000 (00:17 +0200)
app-misc/cdircmp/cdircmp-0.3-r2.ebuild [new file with mode: 0644]

diff --git a/app-misc/cdircmp/cdircmp-0.3-r2.ebuild b/app-misc/cdircmp/cdircmp-0.3-r2.ebuild
new file mode 100644 (file)
index 0000000..ea5818e
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Compare directories and select files to copy"
+HOMEPAGE="http://home.hccnet.nl/paul.schuurmans/"
+SRC_URI="http://home.hccnet.nl/paul.schuurmans/linux/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND=">=sys-libs/ncurses-5.4:0="
+
+src_prepare() {
+       sed -i Makefile \
+               -e 's| -o | $(LDFLAGS)&|g' \
+               || die "sed Makefile"
+       default
+}
+
+src_compile() {
+       emake CC="$(tc-getCC)" \
+               CFLAGS="${CFLAGS}" \
+               LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+       einstalldocs
+       dobin ${PN}
+}