summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-08-07 07:39:32 +0100
committerSam James <sam@gentoo.org>2021-08-07 07:47:26 +0100
commit5bae2f9f147ddda63b9b82c79cc7994bd926c48b (patch)
tree8a72431824b61f4d8c9b72a4f0f0fe12cbb49ba3 /net-libs/liblockfile
parentdev-python/notebook: Bump to 6.4.2 (diff)
downloadgentoo-5bae2f9f147ddda63b9b82c79cc7994bd926c48b.tar.gz
gentoo-5bae2f9f147ddda63b9b82c79cc7994bd926c48b.tar.bz2
gentoo-5bae2f9f147ddda63b9b82c79cc7994bd926c48b.zip
net-libs/liblockfile: add 1.17
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-libs/liblockfile')
-rw-r--r--net-libs/liblockfile/Manifest1
-rw-r--r--net-libs/liblockfile/liblockfile-1.17.ebuild65
2 files changed, 66 insertions, 0 deletions
diff --git a/net-libs/liblockfile/Manifest b/net-libs/liblockfile/Manifest
index 25f238e989cc..6246723ee124 100644
--- a/net-libs/liblockfile/Manifest
+++ b/net-libs/liblockfile/Manifest
@@ -1 +1,2 @@
DIST liblockfile-1.16.tar.gz 68591 BLAKE2B f41df23ee405425265dbf5ca66dacf8e5dac84f40c16d192f1afbb40399f2a68bb92f5e24bbf0d2fb7fc143a92f8fa2713ebccbab70ceb9e67d9c7ae21f42802 SHA512 ee75ecf0dd25744de4e3ce7d6b12483ead2deaf0cd6a527e8493100c5d714751fe97e057873c8c7b04a935f9b46a5ea502950f15d3ce54ecc63d997ab1cee33d
+DIST liblockfile-1.17.tar.gz 69834 BLAKE2B a3c88174d96fb84dc1226102a1678aecec35945b89adb6e143f32674188ff7406f89b05f7219748bf0e9c6207ff3b28b5b800706ffc11b733c294e1e1c232784 SHA512 2169ac2219950d6ec7def6b5cc712cc04d1a185dc9c09b364c8d47b7b3d15c3482a2200b591872da87eb784717b2ba3537fbc39d7075c329cc8ba48039473a83
diff --git a/net-libs/liblockfile/liblockfile-1.17.ebuild b/net-libs/liblockfile/liblockfile-1.17.ebuild
new file mode 100644
index 000000000000..82d39902f7c3
--- /dev/null
+++ b/net-libs/liblockfile/liblockfile-1.17.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Implements functions designed to lock the standard mailboxes"
+HOMEPAGE="https://github.com/miquels/liblockfile"
+SRC_URI="https://github.com/miquels/liblockfile/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris"
+IUSE="static-libs"
+
+RDEPEND="acct-group/mail"
+DEPEND="${RDEPEND}"
+
+DOCS=( Changelog README )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-1.16-makefile.patch"
+)
+
+src_prepare() {
+ default
+
+ # I don't feel like making the Makefile portable
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ cp "${FILESDIR}"/Makefile.Darwin.in Makefile.in || die
+ fi
+
+ eautoreconf
+}
+
+src_configure() {
+ local grp=mail
+
+ if use prefix ; then
+ # We never want to use LDCONFIG
+ export LDCONFIG=${EPREFIX}/bin/true
+ # In unprivileged installs this is "mail"
+ grp=$(id -g)
+ fi
+
+ local myeconfargs=(
+ --with-mailgroup=${grp}
+ --enable-shared
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_compile() {
+ emake AR="$(tc-getAR)"
+}
+
+src_install() {
+ default
+
+ if ! use static-libs ; then
+ find "${ED}" -type f -name "*.a" -delete || die
+ fi
+}