diff options
author | Cédric Krier <cedk@gentoo.org> | 2009-11-21 19:14:51 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2009-11-21 19:14:51 +0000 |
commit | ad3f870f0d6a579c2e96a1ab366dccb201cbbaa7 (patch) | |
tree | 11d3afdbbbe12cb53deec5abee40e59d032bc400 /sys-libs/libsmbios/libsmbios-2.2.19.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-ad3f870f0d6a579c2e96a1ab366dccb201cbbaa7.tar.gz gentoo-2-ad3f870f0d6a579c2e96a1ab366dccb201cbbaa7.tar.bz2 gentoo-2-ad3f870f0d6a579c2e96a1ab366dccb201cbbaa7.zip |
Version bump
(Portage version: 2.1.6.13/cvs/Linux i686)
Diffstat (limited to 'sys-libs/libsmbios/libsmbios-2.2.19.ebuild')
-rw-r--r-- | sys-libs/libsmbios/libsmbios-2.2.19.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/sys-libs/libsmbios/libsmbios-2.2.19.ebuild b/sys-libs/libsmbios/libsmbios-2.2.19.ebuild new file mode 100644 index 000000000000..6dc7b57413c9 --- /dev/null +++ b/sys-libs/libsmbios/libsmbios-2.2.19.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libsmbios/libsmbios-2.2.19.ebuild,v 1.1 2009/11/21 19:14:51 cedk Exp $ + +EAPI=2 + +inherit python + +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.bz2" + +LICENSE="GPL-2 OSL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~ia64 ~x86" +IUSE="doc graphviz nls python test" + +RDEPEND="dev-libs/libxml2 + sys-libs/zlib + nls? ( virtual/libintl ) + python? ( >=dev-lang/python-2.3 )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + doc? ( app-doc/doxygen ) + graphviz? ( media-gfx/graphviz ) + nls? ( sys-devel/gettext ) + test? ( >=dev-util/cppunit-1.9.6 )" + +src_prepare() { + rm pkg/py-compile + ln -s "$(type -P true)" pkg/py-compile || die +} + +src_configure() { + econf \ + $(use_enable doc doxygen) \ + $(use_enable graphviz) \ + $(use_enable nls) \ + $(use_enable python) || die +} + +src_install() { + emake install DESTDIR="${D}" || die "emake install failed" + + rm -rf "${D}etc/yum" + rm -rf "${D}usr/lib/yum-plugins" + + insinto /usr/include/ + doins -r src/include/smbios/ + + dodoc AUTHORS ChangeLog NEWS README TODO +} + +pkg_postinst() { + use python && python_mod_optimize /usr/share/smbios-utils +} + +pkg_postrm() { + use python && python_mod_cleanup /usr/share/smbios-utils +} |