diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-08 13:57:24 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2010-07-08 13:57:24 +0000 |
commit | d8f963a908ea6e120ae18a76d62b809e4e8335d9 (patch) | |
tree | 8323914c36074987a20d1f4978c87b7cfa994b12 /sys-libs | |
parent | Version bump (diff) | |
download | gentoo-2-d8f963a908ea6e120ae18a76d62b809e4e8335d9.tar.gz gentoo-2-d8f963a908ea6e120ae18a76d62b809e4e8335d9.tar.bz2 gentoo-2-d8f963a908ea6e120ae18a76d62b809e4e8335d9.zip |
Initial commit wrt #163148 by Henning Schild.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libacpi/ChangeLog | 10 | ||||
-rw-r--r-- | sys-libs/libacpi/files/libacpi-0.2.patch | 81 | ||||
-rw-r--r-- | sys-libs/libacpi/libacpi-0.2.ebuild | 29 | ||||
-rw-r--r-- | sys-libs/libacpi/metadata.xml | 9 |
4 files changed, 129 insertions, 0 deletions
diff --git a/sys-libs/libacpi/ChangeLog b/sys-libs/libacpi/ChangeLog new file mode 100644 index 000000000000..16d64956f15f --- /dev/null +++ b/sys-libs/libacpi/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sys-libs/libacpi +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libacpi/ChangeLog,v 1.1 2010/07/08 13:57:24 ssuominen Exp $ + +*libacpi-0.2 (08 Jul 2010) + + 08 Jul 2010; Samuli Suominen <ssuominen@gentoo.org> +libacpi-0.2.ebuild, + +files/libacpi-0.2.patch: + Initial commit wrt #163148 by Henning Schild. + diff --git a/sys-libs/libacpi/files/libacpi-0.2.patch b/sys-libs/libacpi/files/libacpi-0.2.patch new file mode 100644 index 000000000000..f3f2b5e98cca --- /dev/null +++ b/sys-libs/libacpi/files/libacpi-0.2.patch @@ -0,0 +1,81 @@ +--- config.mk ++++ config.mk +@@ -3,15 +3,17 @@ + SONAME = libacpi.so.${SOVERSION} + + # customize below to fit your system +-PREFIX = /usr/local ++PREFIX = /usr + MANPREFIX = ${PREFIX}/share/man ++DOCDIR = ${PREFIX}/share/doc/libacpi-${VERSION} ++LIBDIR = ${PREFIX}/lib + + # flags + SOFLAGS = -shared -Wl,-soname,${SONAME} +-CFLAGS += -fPIC -g --pedantic -Wall -Wextra ++CFLAGS += -fPIC -pedantic -Wall -Wextra + + # Compiler and linker +-CC = cc ++CC ?= cc + LD = ${CC} +-AR = ar cr +-RANLIB = ranlib ++AR ?= ar ++RANLIB ?= ranlib +--- Makefile ++++ Makefile +@@ -25,30 +25,29 @@ + + libacpi.a: ${OBJ} + @echo AR $@ +- @${AR} $@ ${OBJ} ++ @${AR} cr $@ ${OBJ} + @${RANLIB} $@ + + libacpi.so: ${OBJ} + @echo LD $@ +- @${LD} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ} ++ @${LD} ${LDFLAGS} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ} + + test-libacpi: ${OBJ_test} + @echo LD $@ +- @${LD} -o $@ ${OBJ_test} ${LDFLAGS} +- @strip $@ ++ @${LD} ${LDFLAGS} -o $@ ${OBJ_test} + + install: all + @echo installing header to ${DESTDIR}${PREFIX}/include + @mkdir -p ${DESTDIR}${PREFIX}/include + @cp -f libacpi.h ${DESTDIR}${PREFIX}/include + @chmod 644 ${DESTDIR}${PREFIX}/include/libacpi.h +- @echo installing library to ${DESTDIR}${PREFIX}/lib +- @mkdir -p ${DESTDIR}${PREFIX}/lib +- @cp -f libacpi.a ${DESTDIR}${PREFIX}/lib +- @chmod 644 ${DESTDIR}${PREFIX}/lib/libacpi.a +- @cp -f ${SONAME} ${DESTDIR}${PREFIX}/lib/ +- @chmod 644 ${DESTDIR}${PREFIX}/lib/${SONAME} +- @ln -s ${SONAME} ${DESTDIR}${PREFIX}/lib/libacpi.so ++ @echo installing library to ${DESTDIR}${LIBDIR} ++ @mkdir -p ${DESTDIR}${LIBDIR} ++ @cp -f libacpi.a ${DESTDIR}${LIBDIR} ++ @chmod 644 ${DESTDIR}${LIBDIR}/libacpi.a ++ @cp -f ${SONAME} ${DESTDIR}${LIBDIR}/ ++ @chmod 644 ${DESTDIR}${LIBDIR}/${SONAME} ++ @ln -s ${SONAME} ${DESTDIR}${LIBDIR}/libacpi.so + @echo installing test-libacpi to ${DESTDIR}${PREFIX}/bin + @mkdir -p ${DESTDIR}${PREFIX}/bin + @cp -f test-libacpi ${DESTDIR}${PREFIX}/bin +@@ -56,9 +55,9 @@ + @echo installing manual page to ${DESTDIR}${MANPREFIX}/man3 + @mkdir -p ${DESTDIR}${MANPREFIX}/man3 + @cp libacpi.3 ${DESTDIR}${MANPREFIX}/man3 +- @echo installing documentation and misc files to ${DESTDIR}${PREFIX}/share/doc/libacpi +- @mkdir -p ${DESTDIR}${PREFIX}/share/doc/libacpi +- @cp -r AUTHORS CHANGES README LICENSE doc ${DESTDIR}${PREFIX}/share/doc/libacpi ++ @echo installing documentation and misc files to ${DESTDIR}${DOCDIR} ++ @mkdir -p ${DESTDIR}${DOCDIR} ++ @cp -r AUTHORS CHANGES README doc/* ${DESTDIR}${DOCDIR} + @echo finished installation + + uninstall: diff --git a/sys-libs/libacpi/libacpi-0.2.ebuild b/sys-libs/libacpi/libacpi-0.2.ebuild new file mode 100644 index 000000000000..d7c8b6ca971a --- /dev/null +++ b/sys-libs/libacpi/libacpi-0.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libacpi/libacpi-0.2.ebuild,v 1.1 2010/07/08 13:57:24 ssuominen Exp $ + +EAPI=2 +inherit eutils multilib toolchain-funcs + +DESCRIPTION="A general purpose library for ACPI" +HOMEPAGE="http://www.ngolde.de/libacpi.html" +SRC_URI="http://www.ngolde.de/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +src_prepare() { + epatch "${FILESDIR}"/${P}.patch +} + +src_compile() { + tc-export AR CC RANLIB + emake || die +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" install || die + prepalldocs +} diff --git a/sys-libs/libacpi/metadata.xml b/sys-libs/libacpi/metadata.xml new file mode 100644 index 000000000000..209f8444202c --- /dev/null +++ b/sys-libs/libacpi/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mobile</herd> + <maintainer> + <email>ssuominen@gentoo.org</email> + <name>Samuli Suominen</name> + </maintainer> +</pkgmetadata> |