summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Mair-Keimberger <m.mairkeimberger@gmail.com>2018-06-24 17:02:37 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2018-07-07 23:54:04 +0200
commitdfa84d450c4ebcbcd999b15e5a1ea6b136893ce2 (patch)
treef15e093b7b19567e39fafe2013cd3184527fb259 /dev-libs
parentdev-libs/syncdir: use HTTPs (diff)
downloadgentoo-dfa84d450c4ebcbcd999b15e5a1ea6b136893ce2.tar.gz
gentoo-dfa84d450c4ebcbcd999b15e5a1ea6b136893ce2.tar.bz2
gentoo-dfa84d450c4ebcbcd999b15e5a1ea6b136893ce2.zip
dev-libs/syncdir: add EAPI7 ebuild
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/syncdir/syncdir-1.0-r2.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-libs/syncdir/syncdir-1.0-r2.ebuild b/dev-libs/syncdir/syncdir-1.0-r2.ebuild
new file mode 100644
index 000000000000..ed06d5f79598
--- /dev/null
+++ b/dev-libs/syncdir/syncdir-1.0-r2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Provides an alternate implementation for open, link, rename, and unlink"
+HOMEPAGE="https://untroubled.org/syncdir"
+SRC_URI="https://untroubled.org/syncdir/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE="static-libs"
+
+src_prepare() {
+ default
+ if ! use static-libs; then
+ sed -i Makefile \
+ -e '/^all:/s|libsyncdir.a||' \
+ -e '/install -m 644 libsyncdir.a/d' \
+ || die "sed Makefile"
+ fi
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ libsyncdir.so \
+ $(use static-libs && echo libsyncdir.a)
+}
+
+src_install() {
+ dodir /usr/$(get_libdir)
+ emake libdir="${D}/usr/$(get_libdir)" install
+ dodoc testsync.c
+}