summaryrefslogtreecommitdiff
path: root/dev-libs/xplc
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/xplc')
-rw-r--r--dev-libs/xplc/Manifest6
-rw-r--r--dev-libs/xplc/files/xplc-0.3.13-as-needed.patch22
-rw-r--r--dev-libs/xplc/metadata.xml12
-rw-r--r--dev-libs/xplc/xplc-0.3.13-r1.ebuild41
4 files changed, 81 insertions, 0 deletions
diff --git a/dev-libs/xplc/Manifest b/dev-libs/xplc/Manifest
new file mode 100644
index 000000000000..0ae4e4db72d5
--- /dev/null
+++ b/dev-libs/xplc/Manifest
@@ -0,0 +1,6 @@
+AUX xplc-0.3.13-as-needed.patch 561 SHA256 8381931466572f4804fa553e8d86d05039d622aa344415c490eab00e0fca7e31 SHA512 105fd3d6a2452ceace8c2de20f6ba16141e232126f9947c95b5ca6ba25a5a71f86eb40502ab895c1d78421cdb5888086f9e2bffc052ed800ad0a07a7db2c26ca WHIRLPOOL 2dbfb0074e16ee68d65a7cadbd9f427feb5ca351b47b1531a6a21290e5a8adc85ea37611e39acd8cb013a8d0023fb2c922d1170840f4d5aafa910f6bf3a6e9be
+DIST xplc-0.3.13.tar.gz 175431 SHA256 158a0f44a2eb055522377c275bbd0e7412dd3b8a9b75ec344c0457b3a1a29cbb SHA512 6969ed16c282589ddc285678e1c02016810f83c4c0fea373d8b7a72c97474e6cc21ca3f8f7a7a6aae814037dfae51c3a41bd39f13a67445552b6a7c1b698195d WHIRLPOOL a4f40cb8d25b1af645d47c53a5cedbb6780b79db427fd2212f997eeaf224ae7a888063efd6b15fdd0b5b336957db81de45dbbcc50cb931302f3e0563fb966d7e
+EBUILD xplc-0.3.13-r1.ebuild 1090 SHA256 2519e29db5c9ad07f4d8011896722efcbe950edd580156a1176a0f56bc04bfd6 SHA512 eec55841972c700a9566a3df6bf469d57065d00362a7ad435b93ff16fa84b288fb9723ed804a12a06bec81e84de7bab2c740f5169eb9e9ad532fe314e72ca621 WHIRLPOOL 2a4fedeaf89bdf00045e08e674fdcb1565b55bc0314af059fe6b3d9d04ee9730782fd5fcb30169f6afa163385bd14b1358b96adf6a0b47031d106c253bbac871
+MISC ChangeLog 2462 SHA256 e06e495b8ee047ebd1469d6e73260eea54d5d741192f78482444f3dd8bbcb66d SHA512 134497841f90469200fd22c44f1a5d3f9f1a6bc9b2704954644cede4871bf698f387636eeda76be9cfc181cc86e137fb0b479789888c4ba2f3c5bedcb94f40de WHIRLPOOL b3165678e23cb38f356f5355615dcfe55dd3c72b8041d1a19971cd4498c2d6f523cfc8e07e4785671d0cfc7982eb59337410397c2fe6d391ca3c04bdb85f9c9e
+MISC ChangeLog-2015 4504 SHA256 fc45b4f810637da66181b8bb5e9a1d14bb3ed4111cc820cabe23d7eb8adfd1c2 SHA512 4605bb510538a4956d2c85b136d603d6330c4c002bc763537eeb419a9cce807206c5d8b6fcc6d30ac813f5b63dc8697e73542b0d0e9e1f5f3c3e2c80681779f5 WHIRLPOOL a68e9507518d91b883ed3809a786096a57a4cf89948bd31ac5d13c22db13555f8e5958d9f139e7fcd7f748b1f65a75f81ec63eff3b65bc900d8ddc14b1cca0fd
+MISC metadata.xml 413 SHA256 dfcde814bf7ac64260d93b8231e43f7b7f772ff66909369a87bdc5d9e4a072dd SHA512 be0418b73ff322800a5908e278e31f27fdf77d986615885fe2b0b92ac2b23fa8a392736cf72bf91ff9c697bc89f2874a09ed4d9eb0127d3965a48272e516eac8 WHIRLPOOL 09d9cc6c6c9ac7249b15f1d148c0006fabd70e614383cbd073b0477aa5943171fc2b2058158b60646ba1307cd79a867f651641a114e42478c03129323e0a3765
diff --git a/dev-libs/xplc/files/xplc-0.3.13-as-needed.patch b/dev-libs/xplc/files/xplc-0.3.13-as-needed.patch
new file mode 100644
index 000000000000..3e002db2ad00
--- /dev/null
+++ b/dev-libs/xplc/files/xplc-0.3.13-as-needed.patch
@@ -0,0 +1,22 @@
+--- config/rules.mk.orig 2006-05-06 19:28:46.000000000 +0200
++++ config/rules.mk 2006-05-06 19:28:53.000000000 +0200
+@@ -44,7 +44,7 @@
+ $(RANLIB) $@
+
+ %.so:
+- $(LINK.cc) $(SHARED) $^ -o $@
++ $(LINK.cc) $(SHARED) $^ $(LDLIBS) -o $@
+
+ %.dll:
+ $(LINK.cc) $(SHARED) $^ -o $@
+--- xplc/vars.mk.orig 2006-05-06 19:32:06.000000000 +0200
++++ xplc/vars.mk 2006-05-06 19:32:12.000000000 +0200
+@@ -32,7 +32,7 @@
+
+ ifneq ("$(enable_loader)", "no")
+ ifneq ("$(with_dlopen)", "no")
+-libxplc.so: LDFLAGS+=$(with_dlopen)
++libxplc.so: LDLIBS+=$(with_dlopen)
+ endif
+ endif
+
diff --git a/dev-libs/xplc/metadata.xml b/dev-libs/xplc/metadata.xml
new file mode 100644
index 000000000000..0a477f0bc1fb
--- /dev/null
+++ b/dev-libs/xplc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>cpp@gentoo.org</email>
+ <name>Gentoo C++ Project</name>
+ </maintainer>
+ <longdescription>cross platform lightweight components library for C++</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">xplc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-libs/xplc/xplc-0.3.13-r1.ebuild b/dev-libs/xplc/xplc-0.3.13-r1.ebuild
new file mode 100644
index 000000000000..1d442fe766b5
--- /dev/null
+++ b/dev-libs/xplc/xplc-0.3.13-r1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="cross platform lightweight components library for C++"
+HOMEPAGE="http://xplc.sourceforge.net"
+SRC_URI="mirror://sourceforge/xplc/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc sparc x86"
+IUSE=""
+
+DEPEND="virtual/pkgconfig"
+RDEPEND=""
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-as-needed.patch"
+
+ #solve conflict with uuidgen utility installed by sys-fs/e2fsprogs (#116699)
+ sed -i -e "s/uuidgen/xplc-uuidgen/g" -e "s/uuidcdef/xplc-uuidcdef/g" \
+ uuid/{rules.mk,vars.mk} config/rules.mk \
+ uuid/bin/*.1 include/xplc/*.h && \
+ mv uuid/bin/uuidgen.1 uuid/bin/xplc-uuidgen.1 &&
+ mv uuid/bin/uuidgen.c uuid/bin/xplc-uuidgen.c ||
+ die "uuidgen rename failed"
+}
+
+src_test() {
+ make tests || die "at least one test has failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ dosym /usr/lib/pkgconfig/${P}.pc /usr/lib/pkgconfig/${PN}.pc
+ dodoc LICENSE README NEWS CREDITS
+}