summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2016-03-14 11:10:36 +0100
committerLars Wendler <polynomial-c@gentoo.org>2016-03-14 11:10:53 +0100
commit52e0cd659923dfdb4a1ef990e2b81ec8e1e23b4e (patch)
tree4e48fcb70d8ce9345f260b4b03e5eca96c25ee3e /sys-libs/libsmbios
parentsys-libs/libsmbios: Added second SRC_URI for older releases. (diff)
downloadgentoo-52e0cd659923dfdb4a1ef990e2b81ec8e1e23b4e.tar.gz
gentoo-52e0cd659923dfdb4a1ef990e2b81ec8e1e23b4e.tar.bz2
gentoo-52e0cd659923dfdb4a1ef990e2b81ec8e1e23b4e.zip
sys-libs/libsmbios: Bump to version 2.3.0
Package-Manager: portage-2.2.28 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-libs/libsmbios')
-rw-r--r--sys-libs/libsmbios/Manifest1
-rw-r--r--sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch16
-rw-r--r--sys-libs/libsmbios/libsmbios-2.3.0.ebuild80
3 files changed, 97 insertions, 0 deletions
diff --git a/sys-libs/libsmbios/Manifest b/sys-libs/libsmbios/Manifest
index 1b9dd9031b0..516534772da 100644
--- a/sys-libs/libsmbios/Manifest
+++ b/sys-libs/libsmbios/Manifest
@@ -1 +1,2 @@
DIST libsmbios-2.2.28.tar.bz2 943292 SHA256 dd247fd43296df3352435b090dd789a22a89c4b316e98b46b915323290a3e350 SHA512 64477adb4cc647613c682d8ff30ced0c951bc83d4cfc696dc343690fb37155e53b0c8c338c7c66822f3b91480fadaf5f70eee6b1ec33371c623213ea07d2b78f WHIRLPOOL e0427e406426705163614f76ac460fa1778b94ad9ce180f606cdf02ff037ee29275830e48065e8a883a19ebe314cc77eabf3cf6a4f9f5c8d5d0b2372486d64ac
+DIST libsmbios-2.3.0.tar.xz 830840 SHA256 c71f040df170f6b55a874f292929792449ba1fad6029ba18544ed04a88343c1c SHA512 944df2dde0df8a02d4c5a84ff6e535e112e6d72b81177c8faba7c45b349ec8c8b2149439c4dc6ea834c5eedad1ac59d8bf073a3d48bf7caccc73d0317f00e216 WHIRLPOOL ac2acbb780f45ebcc9c616881432c981fc9907682b3b4d1e7164921cfa6beeef1a25bdde949375455843209556938ce45a92df8b2a190ab689f1673e72561ac9
diff --git a/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch b/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch
new file mode 100644
index 00000000000..ebe6798bd73
--- /dev/null
+++ b/sys-libs/libsmbios/files/libsmbios-2.3.0-doxygen_target.patch
@@ -0,0 +1,16 @@
+--- libsmbios-2.3.0/Makefile.am
++++ libsmbios-2.3.0/Makefile.am
+@@ -89,10 +89,12 @@
+
+
+ ########## DOCS ################
+-all: doxygen
+ if HAVE_DOXYGEN
++all: doxygen
+ DOXYGEN_DEPS=out/libsmbios_c/html/index.html out/libsmbios_c++/html/index.html
+ doxygen: $(DOXYGEN_DEPS)
++else
++all:
+ endif
+
+ DOT=@DOT@
diff --git a/sys-libs/libsmbios/libsmbios-2.3.0.ebuild b/sys-libs/libsmbios/libsmbios-2.3.0.ebuild
new file mode 100644
index 00000000000..8cceca9a761
--- /dev/null
+++ b/sys-libs/libsmbios/libsmbios-2.3.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit autotools eutils flag-o-matic python-single-r1
+
+DESCRIPTION="Provide access to (SM)BIOS information"
+HOMEPAGE="http://linux.dell.com/libsmbios/main/index.html"
+SRC_URI="http://linux.dell.com/libsmbios/download/libsmbios/${P}/${P}.tar.xz
+ http://linux.dell.com/libsmbios/download/libsmbios/old/${P}/${P}.tar.xz"
+
+LICENSE="GPL-2 OSL-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~x86"
+IUSE="doc graphviz nls python static-libs test"
+
+RDEPEND="dev-libs/libxml2
+ sys-libs/zlib
+ nls? ( virtual/libintl )
+ python? ( ${PYTHON_DEPS} )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ doc? ( app-doc/doxygen )
+ graphviz? ( media-gfx/graphviz )
+ nls? ( sys-devel/gettext )
+ test? ( >=dev-util/cppunit-1.9.6 )"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-fix-pie.patch"
+ "${FILESDIR}/${PN}-2.2.28-cppunit-tests.patch"
+ "${FILESDIR}/${PN}-2.3.0-doxygen_target.patch"
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ >pkg/py-compile
+
+ eautoreconf
+}
+
+src_configure() {
+ #Remove -O3 for bug #290097
+ replace-flags -O3 -O2
+
+ econf \
+ $(use_enable doc doxygen) \
+ $(use_enable graphviz) \
+ $(use_enable nls) \
+ $(use_enable python) \
+ $(use_enable static-libs static)
+}
+
+src_install() {
+ emake install DESTDIR="${D}"
+
+ rm -r "${D}etc/yum" || die
+ rm -r "${D}usr/lib/yum-plugins" || die
+ if ! use python ; then
+ rmdir "${D}libsmbios_c" "${D}usr/share/smbios-utils" || die
+ rm -r "${D}etc" || die
+ else
+ local python_scriptroot="/usr/sbin"
+ python_doscript "${D}"/usr/sbin/smbios-{lcd-brightness,passwd,rbu-bios-update,sys-info,token-ctl,wakeup-ctl,wireless-ctl}
+ fi
+
+ insinto /usr/include/
+ doins -r src/include/smbios/
+
+ dodoc AUTHORS ChangeLog NEWS README TODO
+
+ use static-libs || prune_libtool_files --all
+}