sys-libs/libsmbios: Bump to version 2.3.0

Package-Manager: portage-2.2.28
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
This commit is contained in:
Lars Wendler
2016-03-14 11:10:53 +01:00
parent 88e990ee8e
commit 52e0cd6599
3 changed files with 97 additions and 0 deletions
+1
View File
@@ -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
@@ -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@
+80
View File
@@ -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
}