diff options
author | Justin Lecher <jlec@gentoo.org> | 2009-04-10 22:00:27 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2009-04-10 22:00:27 +0000 |
commit | 16f1ad6cc97d07e5f8f5c80fec7b05735240ffde (patch) | |
tree | cfb7f096319ec7f86f11baef964bcbe0548e7c21 /sys-libs | |
parent | Revert unnneeded change (diff) | |
download | sunrise-16f1ad6cc97d07e5f8f5c80fec7b05735240ffde.tar.gz sunrise-16f1ad6cc97d07e5f8f5c80fec7b05735240ffde.tar.bz2 sunrise-16f1ad6cc97d07e5f8f5c80fec7b05735240ffde.zip |
sys-libs/libacpi: sys-libs/libacpi added
svn path=/sunrise/; revision=8257
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libacpi/ChangeLog | 11 | ||||
-rw-r--r-- | sys-libs/libacpi/Manifest | 6 | ||||
-rw-r--r-- | sys-libs/libacpi/files/0.2-Makefile.patch | 62 | ||||
-rw-r--r-- | sys-libs/libacpi/files/0.2-config.patch | 21 | ||||
-rw-r--r-- | sys-libs/libacpi/libacpi-0.2.ebuild | 36 | ||||
-rw-r--r-- | sys-libs/libacpi/metadata.xml | 5 |
6 files changed, 141 insertions, 0 deletions
diff --git a/sys-libs/libacpi/ChangeLog b/sys-libs/libacpi/ChangeLog new file mode 100644 index 000000000..578f5eaad --- /dev/null +++ b/sys-libs/libacpi/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sys-libs/libacpi +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +* libacpi-0.2 (10 Apr 2009) + + 10 Apr 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> + +files/0.2-Makefile.patch, +files/0.2-config.patch, +metadata.xml, + libacpi-0.2: + initial checkin + diff --git a/sys-libs/libacpi/Manifest b/sys-libs/libacpi/Manifest new file mode 100644 index 000000000..26decbd83 --- /dev/null +++ b/sys-libs/libacpi/Manifest @@ -0,0 +1,6 @@ +AUX 0.2-Makefile.patch 1667 RMD160 a9c7050d89a98c573b5acc95e16a7c00aa882df3 SHA1 0a012e605a753025a95e4e3c1819fc37c8ceae45 SHA256 717cc29dee3dd3261bac8a4cf867ad17810fc63ce081fb39476ff7a8fbbf36d2 +AUX 0.2-config.patch 508 RMD160 8227a5c82a5d7c0aee4206178c33d91deb53bb5e SHA1 0fdd688bc9f198f96cde39716445a170a1b308bd SHA256 21567851c56f3f09d614ca2db7610a0902003c408ed6762425a62b33e49c4d19 +DIST libacpi-0.2.tar.gz 104881 RMD160 2c472118f6d767d2768bde673c745b8e06384216 SHA1 4f2911cb0c737335003c2c13edef76821dee2cd1 SHA256 13086e31d428b9c125954d48ac497b754bbbce2ef34ea29ecd903e82e25bad29 +EBUILD libacpi-0.2.ebuild 764 RMD160 c298155a1c0b2825b63f4555a526a28d8c2a11f5 SHA1 00db9c8f4bb18512fa619340f73acb7d51f8d8df SHA256 24e97b8418302731d81fb0658f33546ce5e5a8c57d2774e1c929dca84a76d9e9 +MISC ChangeLog 306 RMD160 c6285f576cffb74ae11a7a17c1f1e0e0e5759f53 SHA1 fcb88d0668b955a203aa1aa427116b09971ec507 SHA256 0617546b298729ec5b088444292eff709485581049b2fe8b7e2db8e356aafe88 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/sys-libs/libacpi/files/0.2-Makefile.patch b/sys-libs/libacpi/files/0.2-Makefile.patch new file mode 100644 index 000000000..e40616ab1 --- /dev/null +++ b/sys-libs/libacpi/files/0.2-Makefile.patch @@ -0,0 +1,62 @@ +--- Makefile 2007-07-29 14:09:34.000000000 +0200 ++++ Makefile.new 2009-04-10 21:25:34.000000000 +0200 +@@ -8,7 +8,7 @@ + OBJ = ${SRC:.c=.o} + OBJ_test = ${SRC_test:.c=.o} + +-all: options libacpi.a libacpi.so test-libacpi ++all: libacpi.a libacpi.so test-libacpi + + options: + @echo libacpi build options: +@@ -18,24 +18,19 @@ + @echo "LD = ${LD}" + + .c.o: +- @echo CC $< +- @${CC} -c ${CFLAGS} $< ++ ${CC} -c ${CFLAGS} $< + + ${OBJ}: config.mk libacpi.h + + libacpi.a: ${OBJ} +- @echo AR $@ +- @${AR} $@ ${OBJ} +- @${RANLIB} $@ ++ ${AR} $@ ${OBJ} ++ ${RANLIB} $@ + + libacpi.so: ${OBJ} +- @echo LD $@ +- @${LD} ${SOFLAGS} -o $@.${SOVERSION} ${OBJ} ++ ${LD} ${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 +@@ -56,9 +51,6 @@ + @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 finished installation + + uninstall: +--- Makefile 2009-04-10 21:26:18.000000000 +0200 ++++ Makefile.new 2009-04-10 21:27:45.000000000 +0200 +@@ -32,7 +32,7 @@ + test-libacpi: ${OBJ_test} + ${LD} -o $@ ${OBJ_test} ${LDFLAGS} + +-install: all ++install: + @echo installing header to ${DESTDIR}${PREFIX}/include + @mkdir -p ${DESTDIR}${PREFIX}/include + @cp -f libacpi.h ${DESTDIR}${PREFIX}/include diff --git a/sys-libs/libacpi/files/0.2-config.patch b/sys-libs/libacpi/files/0.2-config.patch new file mode 100644 index 000000000..e7a3bbed5 --- /dev/null +++ b/sys-libs/libacpi/files/0.2-config.patch @@ -0,0 +1,21 @@ +--- config.mk 2007-07-29 14:09:34.000000000 +0200 ++++ config.mk.new 2009-04-10 21:02:50.000000000 +0200 +@@ -3,15 +3,14 @@ + SONAME = libacpi.so.${SOVERSION} + + # customize below to fit your system +-PREFIX = /usr/local ++PREFIX = /usr/ + MANPREFIX = ${PREFIX}/share/man + + # flags +-SOFLAGS = -shared -Wl,-soname,${SONAME} +-CFLAGS += -fPIC -g --pedantic -Wall -Wextra ++SOFLAGS = $(LDFLAGS) -shared -Wl,-soname,${SONAME} ++CFLAGS += -fPIC + + # Compiler and linker +-CC = cc + LD = ${CC} + AR = ar cr + RANLIB = ranlib diff --git a/sys-libs/libacpi/libacpi-0.2.ebuild b/sys-libs/libacpi/libacpi-0.2.ebuild new file mode 100644 index 000000000..6c529ef23 --- /dev/null +++ b/sys-libs/libacpi/libacpi-0.2.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="general purpose shared library for programs gathering ACPI data on Linux" +HOMEPAGE="http://ngolde.de/libacpi.html" +SRC_URI="http://ngolde.de/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-config.patch + epatch "${FILESDIR}"/${PV}-Makefile.patch +} + +src_compile() { + emake \ + CC=$(tc-getCC) || \ + die "emake failed" +} + +src_install () { + emake DESTDIR="${D}" install || \ + die "install failed" + dodoc AUTHORS CHANGES README || die "nothing to read" + if use doc; then + dohtml doc/html/* || die " no docs" + fi +} diff --git a/sys-libs/libacpi/metadata.xml b/sys-libs/libacpi/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/sys-libs/libacpi/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>maintainer-wanted</herd> +</pkgmetadata> |