diff options
Diffstat (limited to 'sys-power')
-rw-r--r-- | sys-power/yacpi/ChangeLog | 8 | ||||
-rw-r--r-- | sys-power/yacpi/Manifest | 5 | ||||
-rw-r--r-- | sys-power/yacpi/files/3.0.1-Makefile.patch | 53 | ||||
-rw-r--r-- | sys-power/yacpi/metadata.xml | 5 | ||||
-rw-r--r-- | sys-power/yacpi/yacpi-3.0.1.ebuild | 35 |
5 files changed, 106 insertions, 0 deletions
diff --git a/sys-power/yacpi/ChangeLog b/sys-power/yacpi/ChangeLog new file mode 100644 index 000000000..a3cec29eb --- /dev/null +++ b/sys-power/yacpi/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sys-power/yacpi +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 12 Apr 2009; Justin Lecher (jlec) <jlec@j-schmitz.net> + +files/3.0.1-Makefile.patch, +yacpi-3.0.1.ebuild, +metadata.xml: + sys-power/yacpi added + diff --git a/sys-power/yacpi/Manifest b/sys-power/yacpi/Manifest new file mode 100644 index 000000000..92c466584 --- /dev/null +++ b/sys-power/yacpi/Manifest @@ -0,0 +1,5 @@ +AUX 3.0.1-Makefile.patch 1476 RMD160 33e1ba7c489caf19acf77d3937802f0eb5c3cda8 SHA1 924b84ca52e1b889082cad5cad9143d56223be58 SHA256 81ae994f5d153c92c1979343fc2663c5e2347cfd9143511c957dd42045eb92c3 +DIST yacpi-3.0.1.tar.gz 14508 RMD160 a92255055646db65f2828937153e4e7f8ea20d00 SHA1 4282cbdd546586e101c096d9fbf1445c31b62df8 SHA256 65148a7394d898edc64bcf9f866fe2e47dfdd1cb62c581623084d12946d56fae +EBUILD yacpi-3.0.1.ebuild 656 RMD160 5ee18cf14cf245ef01416d5e8619bc5c80c99d08 SHA1 79285189b45321e0a19a41503417d5f146459d93 SHA256 39faadc699d6f82531f6f73c809b2b144559f280f5d56ec4fdfa5e72e3b5df15 +MISC ChangeLog 265 RMD160 a8b12e9f4c5e15ce0cb777a8c50c44591d00ce3e SHA1 c4b4eef0c00fb9a2fb95194dcee4fd9548fcaf29 SHA256 6f47a22cd44f1047cd16ba4e610ba1ce62a3cf15cba580b12c1137ca08aabb69 +MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 diff --git a/sys-power/yacpi/files/3.0.1-Makefile.patch b/sys-power/yacpi/files/3.0.1-Makefile.patch new file mode 100644 index 000000000..89519d6b6 --- /dev/null +++ b/sys-power/yacpi/files/3.0.1-Makefile.patch @@ -0,0 +1,53 @@ +--- Makefile 2007-10-30 17:39:43.000000000 +0100 ++++ Makefile.new 2009-04-10 21:45:42.000000000 +0200 +@@ -4,11 +4,10 @@ + # --------------------------------------------- + + BIN = yacpi +-prefix = /usr/local ++prefix = /usr/ + INSPATH = ${prefix}/bin/ +-CFLAGS = -O2 -Wall -g -DVERSION=\"${VERSION}\" +-CC = cc +-DOCPATH = ${prefix}/share/doc/yacpi ++CFLAGS += -DVERSION=\"${VERSION}\" ++DOCPATH = ${prefix}/share/doc/yacpi-${VERSION} + MANPATH = ${prefix}/share/man/man1 + VERSION = 3.0.1 + SRC_yacpi = yacpi.c +@@ -17,13 +16,10 @@ + OBJ_get_cpu = ${SRC_get_cpu:.c=.o} + + .c.o : +- @echo CC $< +- @${CC} -c ${CFLAGS} $< ++ ${CC} -c ${CFLAGS} $< + +-all : options ${OBJ_yacpi} ${OBJ_get_cpu} +- @${CC} -Wall get_cpu.o yacpi.o -o ${BIN} -lncurses -lacpi +- @strip ${BIN} +- @echo built yacpi ++all : ${OBJ_yacpi} ${OBJ_get_cpu} ++ ${CC} $(LDFLAGS) get_cpu.o yacpi.o -o ${BIN} -lncurses -lacpi + + dist : clean + @mkdir -p yacpi-${VERSION} +@@ -36,12 +36,12 @@ + @echo "BIN = ${BIN}" + + install : +- @mkdir -p ${DOCPATH} +- @mkdir -p ${INSPATH} +- @mkdir -p ${MANPATH} +- install -m644 CHANGELOG README THANKS COPYING ${DOCPATH} +- install -m644 yacpi.1 ${MANPATH} +- install ${BIN} ${INSPATH} ++ @mkdir -p $(DESTDIR)/${DOCPATH} ++ @mkdir -p $(DESTDIR)/${INSPATH} ++ @mkdir -p $(DESTDIR)/${MANPATH} ++ install -m644 CHANGELOG README THANKS $(DESTDIR)/${DOCPATH} ++ install -m644 yacpi.1 $(DESTDIR)/${MANPATH} ++ install ${BIN} $(DESTDIR)/${INSPATH} + + uninstall : + rm -f ${INSPATH}${BIN} diff --git a/sys-power/yacpi/metadata.xml b/sys-power/yacpi/metadata.xml new file mode 100644 index 000000000..7e3286984 --- /dev/null +++ b/sys-power/yacpi/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> diff --git a/sys-power/yacpi/yacpi-3.0.1.ebuild b/sys-power/yacpi/yacpi-3.0.1.ebuild new file mode 100644 index 000000000..fa45f556c --- /dev/null +++ b/sys-power/yacpi/yacpi-3.0.1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +inherit eutils toolchain-funcs + +DESCRIPTION="Yet Another Configuration and Power Interface" +HOMEPAGE="http://www.ngolde.de/yacpi.html" +SRC_URI="http://www.ngolde.de/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="sys-libs/libacpi + sys-libs/ncurses" +DEPEND="${RDEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${PV}-Makefile.patch +} + +src_compile() { + emake \ + CC=$(tc-getCC) || \ + die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || \ + die "installation failed" +} |