summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2021-09-09 14:20:14 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-09-09 14:24:41 +0300
commite9c265094e66707a548b752fdd04c86ff640d79a (patch)
treeb5ff2f75ca6a85e2e2e6abd9ceca8ee65637a36e /net-libs
parentdev-libs/dqlite: stabilize 1.9.0 for amd64 (diff)
downloadgentoo-e9c265094e66707a548b752fdd04c86ff640d79a.tar.gz
gentoo-e9c265094e66707a548b752fdd04c86ff640d79a.tar.bz2
gentoo-e9c265094e66707a548b752fdd04c86ff640d79a.zip
net-libs/canlock: add 3.2.2
missing yacc dependency added Signed-off-by: Anna Vyalkova <cyber+gentoo@sysrq.in> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/canlock/Manifest1
-rw-r--r--net-libs/canlock/canlock-3.2.2.ebuild47
-rw-r--r--net-libs/canlock/metadata.xml11
3 files changed, 59 insertions, 0 deletions
diff --git a/net-libs/canlock/Manifest b/net-libs/canlock/Manifest
index eca29d2e2e3..de690807ad1 100644
--- a/net-libs/canlock/Manifest
+++ b/net-libs/canlock/Manifest
@@ -1,2 +1,3 @@
DIST canlock_2b-6.diff.gz 7946 BLAKE2B 489161a24f832d978fae49f7349e9ddd3518cfc0b3c02a8e614bffbefafd2fd3ff9f5720b2df0dead30e6d70dcd510380fee8cc2b535268266408719ca030e35 SHA512 fa89d638d87e5cb18bd6c270200cd5d962c5a263855e5cbbd8e944dea633a61d6f0c271da04d56096ef23e0a9f252e3bdead496e9aa9afe31d3f8e7ef679020f
DIST canlock_2b.orig.tar.gz 14099 BLAKE2B 93c991298ed7bf7ab57b290edf6e6b7bcd86ab452002cd61acbff17ec60eed2e15983b3f1cbe8d54acf4f0cfa11480822c7d7ed474e4c51dea018f73933308f2 SHA512 3ceeac6a17fc3bb3330626d22145371ed5f53ad2a33c6a60b639dab0dbc8ff85623839a9d1e1d4cb78580a9060b0ec9fd3489d1374feecf587b2ec5c7963f58e
+DIST libcanlock-3.2.2.tar.bz2 467561 BLAKE2B e332c379647c7ad3fbf5f0a8051b888be65674bcb2c9be1b689f009fd35eecbb29644d9f17aaa3812c9405283708207c6f220f630e0dd1c6a5508d41b85a6070 SHA512 3d194a37bdbdf640bb6996383ce988c9177573b6f84c29569d759308564c7636d98d5c267988bd034b33681f814400eb7fbecf78d90f54b126edb3bf384f928f
diff --git a/net-libs/canlock/canlock-3.2.2.ebuild b/net-libs/canlock/canlock-3.2.2.ebuild
new file mode 100644
index 00000000000..6d658390cf0
--- /dev/null
+++ b/net-libs/canlock/canlock-3.2.2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="A library for creating and verifying Usenet cancel locks"
+HOMEPAGE="https://micha.freeshell.org/libcanlock/"
+SRC_URI="https://micha.freeshell.org/lib${PN}/src/lib${P}.tar.bz2"
+S="${WORKDIR}/lib${P}"
+
+LICENSE="BSD MIT"
+SLOT="0/3"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE="+legacy"
+
+BDEPEND="virtual/yacc"
+
+DOCS=( ChangeLog{,_V{0..2}} README doc/sec_review.txt )
+
+src_prepare() {
+ default
+
+ # shatest fails to build with slibtool
+ sed 's/shatest$(EXEEXT) //g' -i test/Makefile.in || die
+}
+
+src_configure() {
+ local econf_args=(
+ --enable-pc-files
+ $(use_enable legacy legacy-api)
+ )
+
+ econf "${econf_args[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+
+ # keep old header location for compability with canlock v2
+ use legacy && dosym ./libcanlock-3/canlock.h /usr/include/canlock.h
+
+ # required for net-nntp/tin
+ dosym ./libcanlock-3.pc /usr/$(get_libdir)/pkgconfig/libcanlock3.pc
+}
diff --git a/net-libs/canlock/metadata.xml b/net-libs/canlock/metadata.xml
index 6f49eba8f49..fae3fb70cd1 100644
--- a/net-libs/canlock/metadata.xml
+++ b/net-libs/canlock/metadata.xml
@@ -2,4 +2,15 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
+<upstream>
+ <maintainer>
+ <name>Michael Baeuerle</name>
+ <email>michael.baeuerle@gmx.net</email>
+ </maintainer>
+</upstream>
+<use>
+ <flag name="legacy" restrict="&gt;=net-libs/canlock-3.0">
+ Enable or disable building legacy code (v2 compatible)
+ </flag>
+</use>
</pkgmetadata>