sys-libs/obstack-standalone: New package
authorAric Belsito <lluixhi@gmail.com>
Thu, 19 Jan 2017 20:16:22 +0000 (12:16 -0800)
committerAnthony G. Basile <blueness@gentoo.org>
Sat, 21 Jan 2017 13:38:38 +0000 (08:38 -0500)
sys-libs/obstack-standalone/Manifest [new file with mode: 0644]
sys-libs/obstack-standalone/metadata.xml [new file with mode: 0644]
sys-libs/obstack-standalone/obstack-standalone-1.1.ebuild [new file with mode: 0644]

diff --git a/sys-libs/obstack-standalone/Manifest b/sys-libs/obstack-standalone/Manifest
new file mode 100644 (file)
index 0000000..d595464
--- /dev/null
@@ -0,0 +1 @@
+DIST obstack-standalone-1.1.tar.gz 11561 SHA256 52a216613e7d55e8725e43d017bb2d49a4b1ffa1e06da472f03c7f9875df7d0d SHA512 e3a9956133d72a00663cf8d9720e62002142e113e7d67e2338a2bce1bdfac9eefd4290db8add15eabafdf01065f7fe9bb6754faa36b88df819c53d44fa140757 WHIRLPOOL 2db9b26af04dd06fe216969443ebe9ea1be232e1d51b367da6dab76220ef3e354a4acc9fcf57441f6f7396d407371f5c18940947472e1460666d73ddd58249a2
diff --git a/sys-libs/obstack-standalone/metadata.xml b/sys-libs/obstack-standalone/metadata.xml
new file mode 100644 (file)
index 0000000..fe19d3f
--- /dev/null
@@ -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>proxy-maint@gentoo.org</email>
+    <name>Proxy Maintainers</name>
+  </maintainer>
+  <maintainer type="person" >
+    <email>lluixhi@gmail.com</email>
+    <name>Aric Belsito</name>
+  </maintainer>
+</pkgmetadata>
diff --git a/sys-libs/obstack-standalone/obstack-standalone-1.1.ebuild b/sys-libs/obstack-standalone/obstack-standalone-1.1.ebuild
new file mode 100644 (file)
index 0000000..eea4e2b
--- /dev/null
@@ -0,0 +1,38 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="A standalone library to implement GNU libc's obstack."
+HOMEPAGE="https://github.com/pullmoll/musl-obstack"
+SRC_URI="https://github.com/pullmoll/musl-obstack/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
+IUSE="static-libs"
+
+DEPEND="
+       !sys-libs/glibc
+       !sys-libs/uclibc"
+
+S="${WORKDIR}/musl-obstack-${PV}"
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable static-libs static)
+}
+
+src_install() {
+       default
+       find "${D}" -name '*.la' -delete || die
+       mv "${ED%/}"/usr/$(get_libdir)/pkgconfig/{musl-obstack,obstack-standalone}.pc || die
+}