app-admin/entr: export CC.
authorPatrice Clement <monsieurp@gentoo.org>
Thu, 16 Nov 2017 21:53:48 +0000 (22:53 +0100)
committerPatrice Clement <monsieurp@gentoo.org>
Thu, 16 Nov 2017 21:55:19 +0000 (22:55 +0100)
Package-Manager: Portage-2.3.13, Repoman-2.3.4

app-admin/entr/entr-3.9-r1.ebuild [new file with mode: 0644]

diff --git a/app-admin/entr/entr-3.9-r1.ebuild b/app-admin/entr/entr-3.9-r1.ebuild
new file mode 100644 (file)
index 0000000..ec8d53e
--- /dev/null
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit toolchain-funcs
+
+DESCRIPTION="Run arbitrary commands when files change"
+HOMEPAGE="http://entrproject.org"
+SRC_URI="http://entrproject.org/code/${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+src_unpack() {
+       unpack "${P}.tar.gz"
+       mv eradman-* "${P}" || die
+}
+
+src_configure() {
+       sh configure || die
+       sed -i -e 's#\(^PREFIX \).*#\1\?= /usr#' Makefile.bsd || die
+}
+
+src_compile() {
+       export CC=$(tc-getCC)
+       default
+}
+
+src_test() {
+       export CC=$(tc-getCC)
+       default
+}