diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-16 18:25:51 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-04-16 18:25:51 +0200 |
commit | d9ec8413744faaba3543bff9773bdad9786260ab (patch) | |
tree | e3cb78524323873b8f164c43c1816e2bc3b86ff3 | |
parent | bf18b144c79fc2d322d627eccd267973b4ee3812 (diff) | |
download | overlay-d9ec8413744faaba3543bff9773bdad9786260ab.tar.gz overlay-d9ec8413744faaba3543bff9773bdad9786260ab.tar.bz2 overlay-d9ec8413744faaba3543bff9773bdad9786260ab.zip |
Added stuff from laptop
43 files changed, 1270 insertions, 0 deletions
diff --git a/app-laptop/hdapsd/ChangeLog b/app-laptop/hdapsd/ChangeLog new file mode 100755 index 0000000..47bf0ce --- /dev/null +++ b/app-laptop/hdapsd/ChangeLog @@ -0,0 +1,29 @@ +# ChangeLog for app-laptop/hdapsd +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/ChangeLog,v 1.5 2007/01/23 16:14:46 genone Exp $ + + 23 Jan 2007; Marius Mauch <genone@gentoo.org> hdapsd-20060409.ebuild, + hdapsd-20060409-r1.ebuild: + Replacing einfo with elog + +*hdapsd-20060409-r1 (05 Dec 2006) + + 05 Dec 2006; Roy Marples <uberlord@gentoo.org> files/hdapsd.init, + +hdapsd-20060409-r1.ebuild: + Bump for a new patchset, works on 2.6.18 and 2.6.19 kernels. + Fixes #142376 and #148423 + + 28 Jun 2006; Roy Marples <uberlord@gentoo.org> hdapsd-20060409.ebuild: + Remove syslog stuff as it was invalid for scsi/sata systems. + Detect patched kernel via /sys in pkg_postinst as kernel sources may not be + installed and the warning may be in error. + + 27 Jun 2006; Roy Marples <uberlord@gentoo.org> +files/hdaps-Z60m.patch, + hdapsd-20060409.ebuild: + Added a kernel patch so --config can enable hdaps on my Z60m + +*hdapsd-20060409 (26 Jun 2006) + + 26 Jun 2006; Roy Marples <uberlord@gentoo.org> +files/hdapsd.conf, + +files/hdapsd.init, +metadata.xml, +hdapsd-20060409.ebuild: + Initial import based on the work by Michael Gaber and Jeff Grafton, #119845. diff --git a/app-laptop/hdapsd/Manifest b/app-laptop/hdapsd/Manifest new file mode 100755 index 0000000..c9e8792 --- /dev/null +++ b/app-laptop/hdapsd/Manifest @@ -0,0 +1,29 @@ +AUX hdaps-Z60m.patch 352 RMD160 963be45785af235fa3e0d74d68d2e75fad663396 SHA1 317de158fdacdd379a94b0652b54ed48525a71bc SHA256 05b0def085f637bae8561a825d7ff3ffc51bdd33609b1520e2d30aa807f00016 +MD5 d2dc49b9cfea10c6e8b09fc8a3077bc4 files/hdaps-Z60m.patch 352 +RMD160 963be45785af235fa3e0d74d68d2e75fad663396 files/hdaps-Z60m.patch 352 +SHA256 05b0def085f637bae8561a825d7ff3ffc51bdd33609b1520e2d30aa807f00016 files/hdaps-Z60m.patch 352 +AUX hdapsd.conf 321 RMD160 5bb760d34bca3f5a12aeb057b78de7e2a9065bc3 SHA1 ade013dab6278a385b4658aad7e871b743380689 SHA256 22e1acf385427052a12858db005fd73d42d9f6818fb253b032cd326101df2e34 +MD5 ef4095f13d4c1a5363c3ed2e0528bd08 files/hdapsd.conf 321 +RMD160 5bb760d34bca3f5a12aeb057b78de7e2a9065bc3 files/hdapsd.conf 321 +SHA256 22e1acf385427052a12858db005fd73d42d9f6818fb253b032cd326101df2e34 files/hdapsd.conf 321 +AUX hdapsd.init 1267 RMD160 1ae521bcf38ace4904d97d64eedb4d72eaaffa23 SHA1 24bd54b9a322dcfc0c54d82093160a1965a8e118 SHA256 3555618d1613c3d60d5164b9f9e70fd7ac1ccf6f6b1f30d53aac33a901487964 +MD5 5adbdfabe13cf2add3346679d02eb2d2 files/hdapsd.init 1267 +RMD160 1ae521bcf38ace4904d97d64eedb4d72eaaffa23 files/hdapsd.init 1267 +SHA256 3555618d1613c3d60d5164b9f9e70fd7ac1ccf6f6b1f30d53aac33a901487964 files/hdapsd.init 1267 +DIST hdaps_protect-patches-2.tar.bz2 10203 RMD160 899a109b58b7aa4949012cd447275d2f3957951e SHA1 67599f3c1a5daaa298f6f1d30168ab0f6c45f407 SHA256 59cfe2535f3d11d1fe54d3c6acb3d2471c461af7770816aeec02411566d38c4b +DIST hdapsd-20060409.c.bz2 5253 RMD160 0b8d07a2612bd4888014913bd8810de664352bfb SHA1 df6c5bf28d4539e97bb1800a455a36cf690d4779 SHA256 e8e1788d485814cd294c33744b60265423d8971abf5ab50b037f05de2c710a21 +EBUILD hdapsd-20060409-r1.ebuild 2346 RMD160 082b819b06c560cb6393102c608f3bdeb2c62c3b SHA1 4d8981d73678fdf7524408961430b09471292ed0 SHA256 90cb5d89f8cdc61d786244c4c83791f42a98bfa7f14ce216a428b9d6127e5a12 +MD5 cb1184ac53181a0a28a34be45f0063df hdapsd-20060409-r1.ebuild 2346 +RMD160 082b819b06c560cb6393102c608f3bdeb2c62c3b hdapsd-20060409-r1.ebuild 2346 +SHA256 90cb5d89f8cdc61d786244c4c83791f42a98bfa7f14ce216a428b9d6127e5a12 hdapsd-20060409-r1.ebuild 2346 +MISC ChangeLog 1228 RMD160 1ccd7fa047355d0bc0e492aa27fdb3a13286812a SHA1 329c8e3f86a94175c06960ebaa27e018305d9c61 SHA256 e75359660a99badb2975508d229ed0fb070daac5aab868eea80a88feef635d57 +MD5 883890bdb1436d42c8ee52e6b6332d83 ChangeLog 1228 +RMD160 1ccd7fa047355d0bc0e492aa27fdb3a13286812a ChangeLog 1228 +SHA256 e75359660a99badb2975508d229ed0fb070daac5aab868eea80a88feef635d57 ChangeLog 1228 +MISC metadata.xml 356 RMD160 140232e3535cb4f3eecb376611b3419519b4b260 SHA1 2563060180594d039fa175a73a8437bc13af5660 SHA256 29a57a39b3a1fdf3091c4012b4161c27b043da505743cf665860527545a9a1fa +MD5 29203234d07d55e82b92c297ab988473 metadata.xml 356 +RMD160 140232e3535cb4f3eecb376611b3419519b4b260 metadata.xml 356 +SHA256 29a57a39b3a1fdf3091c4012b4161c27b043da505743cf665860527545a9a1fa metadata.xml 356 +MD5 ef4ce6b815df724ce87709167198b9a3 files/digest-hdapsd-20060409-r1 509 +RMD160 8ada6c6bd17fff3a7f229fe9f7aa93e563fb01dc files/digest-hdapsd-20060409-r1 509 +SHA256 b2db6a2e79197bc563e8ea76089cbf6a238bee5eaa90cefe3990e0abd4db4b7f files/digest-hdapsd-20060409-r1 509 diff --git a/app-laptop/hdapsd/files/digest-hdapsd-20060409-r1 b/app-laptop/hdapsd/files/digest-hdapsd-20060409-r1 new file mode 100755 index 0000000..1b290cf --- /dev/null +++ b/app-laptop/hdapsd/files/digest-hdapsd-20060409-r1 @@ -0,0 +1,6 @@ +MD5 b7503b856a64783b8920a7c8d48eb3a3 hdaps_protect-patches-2.tar.bz2 10203 +RMD160 899a109b58b7aa4949012cd447275d2f3957951e hdaps_protect-patches-2.tar.bz2 10203 +SHA256 59cfe2535f3d11d1fe54d3c6acb3d2471c461af7770816aeec02411566d38c4b hdaps_protect-patches-2.tar.bz2 10203 +MD5 ef8bf36c67e2aee8914be178012b3861 hdapsd-20060409.c.bz2 5253 +RMD160 0b8d07a2612bd4888014913bd8810de664352bfb hdapsd-20060409.c.bz2 5253 +SHA256 e8e1788d485814cd294c33744b60265423d8971abf5ab50b037f05de2c710a21 hdapsd-20060409.c.bz2 5253 diff --git a/app-laptop/hdapsd/files/hdaps-Z60m.patch b/app-laptop/hdapsd/files/hdaps-Z60m.patch new file mode 100755 index 0000000..57c723c --- /dev/null +++ b/app-laptop/hdapsd/files/hdaps-Z60m.patch @@ -0,0 +1,10 @@ +--- drivers/hwmon/hdaps.c 2006-06-26 09:37:31.131424200 +0100 ++++ drivers/hwmon/hdaps.c 2006-06-26 09:39:49.000000000 +0100 +@@ -539,6 +539,7 @@ + HDAPS_DMI_MATCH_NORMAL("ThinkPad X41 Tablet"), + HDAPS_DMI_MATCH_NORMAL("ThinkPad X41"), + HDAPS_DMI_MATCH_LENOVO("ThinkPad X60"), ++ HDAPS_DMI_MATCH_NORMAL("ThinkPad Z60m"), + { .ident = NULL } + }; + diff --git a/app-laptop/hdapsd/files/hdapsd.conf b/app-laptop/hdapsd/files/hdapsd.conf new file mode 100755 index 0000000..6221909 --- /dev/null +++ b/app-laptop/hdapsd/files/hdapsd.conf @@ -0,0 +1,11 @@ +# The name of the disk device that hdapsd should monitor. +# Usually this is 'hda' or 'sda' the primary master. +DISK="sda" + +# hdapsd sensitivity +# The lower the threshold is the earlier +# the heads are parked when the laptop is shaked +THRESHOLD="10" + +# Set any extra options here, like -a for Adaptive mode +OPTIONS="-a" diff --git a/app-laptop/hdapsd/files/hdapsd.init b/app-laptop/hdapsd/files/hdapsd.init new file mode 100755 index 0000000..a413490 --- /dev/null +++ b/app-laptop/hdapsd/files/hdapsd.init @@ -0,0 +1,49 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 + +depend() { + need localmount +} + +checkconfig() { + if [[ -z ${DISK} || -z ${THRESHOLD} ]] ; then + eerror "You should setup DISK and THRESHOLD in /etc/conf.d/hdapsd." + return 1 + fi + + if [[ ! -e /sys/block/${DISK}/queue/protect ]] ; then + eerror "No protect entry for ${DISK}!" + eerror "Make sure your kernel is patched with the blk_freeze patch" + return 1 + fi + + # Load the tp_smapi module first + # This is not a requirement, but it helps hdapsd adaptive mode + if [[ ! -e /sys/devices/platorm/smapi ]] ; then + modprobe tp_smapi 2>/dev/null + fi + + if [[ ! -d /sys/devices/platform/hdaps ]]; then + ebegin "Loading hdaps module" + modprobe hdaps + eend $? || return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting Hard Drive Active Protection System daemon" + start-stop-daemon --start --exec /usr/sbin/hdapsd \ + --pidfile /var/run/hdapsd.pid \ + -- -b -p -d "${DISK}" -s "${THRESHOLD}" ${OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping Hard Drive Active Protection System daemon" + start-stop-daemon --stop --exec /usr/sbin/hdapsd \ + --pidfile /var/run/hdapsd.pid + eend $? +} diff --git a/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild b/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild new file mode 100644 index 0000000..481a53b --- /dev/null +++ b/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-laptop/hdapsd/hdapsd-20060409-r1.ebuild,v 1.3 2007/08/29 18:55:52 genstef Exp $ + +inherit eutils linux-info + +PROTECT_VER="2" + +DESCRIPTION="IBM ThinkPad Harddrive Active Protection disk head parking daemon" +HOMEPAGE="http://hdaps.sourceforge.net/" +SRC_URI="mirror://gentoo/${P}.c.bz2 + mirror://gentoo/hdaps_protect-patches-${PROTECT_VER}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" +RDEPEND="" + +S="${WORKDIR}" + +CONFIG_CHECK="SENSORS_HDAPS" +ERROR_SENSORS_HDAPS="${P} requires support for HDAPS (CONFIG_SENSORS_HDAPS)" + +src_compile() { + cd "${WORKDIR}" + gcc ${CFLAGS} "${P}".c -o hdapsd || die "failed to compile" +} + +src_install() { + dosbin "${WORKDIR}"/hdapsd + newconfd "${FILESDIR}"/hdapsd.conf hdapsd + newinitd "${FILESDIR}"/hdapsd.init hdapsd + + # Install our kernel patches + insinto /usr/share/${PN} + doins *.patch "${FILESDIR}"/hdaps-Z60m.patch +} + +# Yes, this sucks as the source location may change, kernel sources may not be +# installed, but we try our best anyway +kernel_patched() { + get_version + + if grep -qs "blk_protect_register" "${KERNEL_DIR}"/block/ll_rw_blk.c ; then + einfo "Your kernel has already been patched for blk_freeze" + return 0 + fi + + return 1 +} + +pkg_config() { + kernel_patched && return 0 + + local dir="${ROOT}/usr/share/${PN}" + local p="hdaps_protect-${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}.patch.gz" + + # We need to find our FILESDIR as it's now lost + if [[ ! -e ${dir}/${p} ]] ; then + eerror "We don't have a patch for kernel ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH} yet" + return 1 + fi + + if [[ ! -d ${KERNEL_DIR} ]] ; then + eerror "Kernel sources not found!" + return 1 + fi + + cd "${KERNEL_DIR}" + epatch "${dir}/${p}" + + # This is just a nice to have for me as I use a Z60m myself + if ! grep -q "Z60m" "${KERNEL_DIR}"/drivers/hwmon/hdaps.c ; then + epatch "${dir}"/hdaps-Z60m.patch.gz + fi + + echo + einfo "Now you should rebuild your kernel, its modules" + einfo "and then install them." +} + +pkg_postinst(){ + [[ -n $(ls "${ROOT}"/sys/block/*/queue/protect 2>/dev/null) ]] && return 0 + + if ! kernel_patched ; then + ewarn "Your kernel has NOT been patched for blk_freeze" + elog "The ebuild can attempt to patch your kernel like so" + elog " emerge --config =${PF}" + fi +} diff --git a/app-laptop/hdapsd/metadata.xml b/app-laptop/hdapsd/metadata.xml new file mode 100755 index 0000000..ed8a225 --- /dev/null +++ b/app-laptop/hdapsd/metadata.xml @@ -0,0 +1,11 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>mobile</herd> + <maintainer> + <email>uberlord@gentoo.org</email> + <name>Roy Marples</name> + </maintainer> + <longdescription>IBM ThinkPad Harddrive Active Protection disk head parking + daemon</longdescription> +</pkgmetadata> diff --git a/dev-java/sqlitejdbc/Manifest b/dev-java/sqlitejdbc/Manifest new file mode 100644 index 0000000..7cf1b7c --- /dev/null +++ b/dev-java/sqlitejdbc/Manifest @@ -0,0 +1,3 @@ +DIST sqlitejdbc-v042-src.tgz 570611 RMD160 b5d1248d85fd9820a1ed1a62cbf0bfecbe00a5a0 SHA1 8213af51caecc24a5404cbbb048c772378a6bae6 SHA256 99286809a6898dd3bc1d4badf16ab71c3c50f8f1abdb934c1f2b48904790dedb +EBUILD sqlitejdbc-042.ebuild 667 RMD160 f763bff6d2b1f3d5720b8497fa7e2f4b0f42eba0 SHA1 d5f31045a383f5426fa0e02da7c4d500d920f0dc SHA256 dd5d82e0712d668f9a4121ee7217eb658df7809c393a8f00648db7593ced0701 +MISC .sqlitejdbc-042.ebuild.swp 12288 RMD160 1c4b86d58e570c13755b3598ac72fe767bf38666 SHA1 8caba7d0831ff7b37609d24371c670043f49a41a SHA256 20e4a1cf8975beb381261e134565966a4173090d9f6bfee5f8f88e5bf4584e3b diff --git a/dev-java/sqlitejdbc/sqlitejdbc-042.ebuild b/dev-java/sqlitejdbc/sqlitejdbc-042.ebuild new file mode 100644 index 0000000..eec9b3e --- /dev/null +++ b/dev-java/sqlitejdbc/sqlitejdbc-042.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=1 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 + +DESCRIPTION="Native JDBC driver for for SQLite-3" +HOMEPAGE="http://www.zentus.com/sqlitejdbc/" +SRC_URI="http://www.zentus.com/sqlitejdbc/dist/${PN}-v${PV}-src.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" + +COMMON_DEP="dev-db/sqlite:3" + +RDEPEND=">=virtual/jre-1.4 + ${COMMON_DEP}" +DEPEND=">=virtual/jdk-1.4 + ${COMMON_DEP}" + +src_compile () { + cd ${S} + make +} + +src_install() { + java-pkg_dojar "${PN}.jar" + use doc && java-pkg_dojavadoc build/javadoc + use source && java-pkg_dosrc src +} + diff --git a/dev-perl/File-BaseDir/File-BaseDir-0.03.ebuild b/dev-perl/File-BaseDir/File-BaseDir-0.03.ebuild new file mode 100644 index 0000000..78ca502 --- /dev/null +++ b/dev-perl/File-BaseDir/File-BaseDir-0.03.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-BaseDir/File-BaseDir-0.02.ebuild,v 1.18 2007/07/10 23:33:29 mr_bones_ Exp $ + +inherit perl-module + +DESCRIPTION="The Perl File-BaseDir Module" +SRC_URI="mirror://cpan/authors/id/P/PA/PARDUS/${P}.tar.gz" +HOMEPAGE="http://search.cpan.org/~pardus/" +SLOT="0" +LICENSE="|| ( Artistic GPL-2 )" +KEYWORDS="amd64 ia64 ppc ppc64 sparc x86" +IUSE="" + +DEPEND="dev-lang/perl" diff --git a/dev-perl/File-BaseDir/Manifest b/dev-perl/File-BaseDir/Manifest new file mode 100644 index 0000000..132986d --- /dev/null +++ b/dev-perl/File-BaseDir/Manifest @@ -0,0 +1,2 @@ +DIST File-BaseDir-0.03.tar.gz 6065 RMD160 8ca2e29a57fe65c58c04f9f205247831f16a0c39 SHA1 901f56c06fd3b4a105bd24b8790ba95337d9aea7 SHA256 0029cba7a3b5d8aa5f7d03cb1b7ba2bcf2829382f7f26aa3bee06fce8611a886 +EBUILD File-BaseDir-0.03.ebuild 514 RMD160 292784523844d3fcb7964272a72cecf588e7eb15 SHA1 822dddd56397aa30c924963f23a0152857b4946d SHA256 ccfb473ce162125a14fff38eab6d6106218cdf9ab657c1d85e6a1260a4667b5c diff --git a/dev-perl/File-DesktopEntry/File-DesktopEntry-0.04.ebuild b/dev-perl/File-DesktopEntry/File-DesktopEntry-0.04.ebuild new file mode 100644 index 0000000..d6ee74f --- /dev/null +++ b/dev-perl/File-DesktopEntry/File-DesktopEntry-0.04.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-perl/File-DesktopEntry/File-DesktopEntry-0.02.ebuild,v 1.6 2007/12/27 14:08:41 ticho Exp $ + +inherit perl-module + +DESCRIPTION="Object to handle .desktop files" +HOMEPAGE="http://search.cpan.org/search?query=${PN}" +SRC_URI="mirror://cpan/authors/id/P/PA/PARDUS/${PN}/${P}.tar.gz" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="amd64 ~ppc x86" +IUSE="" +SRC_TEST="do" + +DEPEND="dev-lang/perl" diff --git a/dev-perl/File-DesktopEntry/Manifest b/dev-perl/File-DesktopEntry/Manifest new file mode 100644 index 0000000..dfa71a5 --- /dev/null +++ b/dev-perl/File-DesktopEntry/Manifest @@ -0,0 +1,2 @@ +DIST File-DesktopEntry-0.04.tar.gz 13784 RMD160 18e703eae1a671d0dbbea032f598f2d4a05762b7 SHA1 2ab7e9056b745ff5a8530431666c437328b7c7a0 SHA256 d7f80d8bd303651a43dc1810c73740d38a0d2b158fb33cd3b6ca4d3a566da7cb +EBUILD File-DesktopEntry-0.04.ebuild 524 RMD160 e02781366a2930c99d55f20c6c9bc8397e212595 SHA1 4985473cd03facc60ceeeb8671a724422f082e31 SHA256 b4be2e19f70bbc61e47c3c6fd4ecdacebbcd4d9d949aa3e7a8685f2a1ef3c870 diff --git a/dev-python/cython/Manifest b/dev-python/cython/Manifest new file mode 100644 index 0000000..edaa049 --- /dev/null +++ b/dev-python/cython/Manifest @@ -0,0 +1,2 @@ +DIST Cython-0.9.6.12.zip 1294449 RMD160 120aa9d6dcbe1357fad6c61d4868039e0f27c0d9 SHA1 1e57efbb48bbd3a8a997300edef325351eef0c77 SHA256 9423dfd5502f3b38699dd3d8cda0aca8cd9fb4b94d0c9160901dfb1c3cb705d6 +EBUILD cython-0.9.6.12.ebuild 968 RMD160 44755fd29af16db55d7ec4efdd8379187d7307b7 SHA1 0e3806e5d49ac0a0e08d5fa7ccd02331186f79ab SHA256 9cb10e2151faf78ff4eef3ff84b9e6576b363cbf89e1afbbe1fda8ad96403f24 diff --git a/dev-python/cython/cython-0.9.6.12.ebuild b/dev-python/cython/cython-0.9.6.12.ebuild new file mode 100644 index 0000000..5a0b4e9 --- /dev/null +++ b/dev-python/cython/cython-0.9.6.12.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/cython/cython-0.9.6.10b.ebuild,v 1.1 2008/01/04 16:51:19 hawking Exp $ + +NEED_PYTHON=2.2 + +inherit distutils eutils + +MY_PN="Cython" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="A language for writing Python extension modules based on pyrex" +HOMEPAGE="http://www.cython.org/" +SRC_URI="http://www.cython.org/${MY_P}.zip" + +LICENSE="PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples" + +DEPEND="app-arch/unzip" + +S="${WORKDIR}/${MY_P}" + +PYTHON_MODNAME="${MY_PN}" +DOCS="ToDo.txt USAGE.txt" + +src_install() { + distutils_src_install + + # -A c switch is for Doc/primes.c + use doc && dohtml -A c -r Doc/* + + if use examples; then + # Demos/ has files with .so,~ suffixes. + # So we have to specify precisely what to install. + insinto /usr/share/doc/${PF}/examples + doins Demos/Makefile* Demos/Setup.py Demos/*.{py,pyx,pxd} + fi +} diff --git a/dev-python/lxml/Manifest b/dev-python/lxml/Manifest new file mode 100644 index 0000000..e4217f6 --- /dev/null +++ b/dev-python/lxml/Manifest @@ -0,0 +1,4 @@ +AUX gtk-threading-filename-guessing.patch 1054 RMD160 81d9090a447539beb6644249d5366f4d36ea6009 SHA1 1bc29d5737c6fe03fee3566b507695abec638834 SHA256 8b7d6c847c27948455ec3bb74f998ddc807aa293c1083608880716e555a693a0 +AUX parse-gtk-problem.patch 1698 RMD160 179c0807ec7335e63853fd65981cf6b21884f9e3 SHA1 56918ec6f47ef7da5118d76acb21414615091eef SHA256 d42eac9ed08e0c36fa010b4b9f37904b428a2fe4d5376b44aba38aa95ba76331 +DIST lxml-2.0.2.tgz 2002234 RMD160 c3ed569aee8112dfaca2c7be7309ca51cf23317d SHA1 97fc60896e34b48b6179ecc5ebb68ca96cbf2a4a SHA256 0f1a1f9ad32fbd6a60f985a71b9266996b2b4bb4831ff5945106f8fc7fa11a56 +EBUILD lxml-2.0.2-r1.ebuild 1530 RMD160 aaeec83741ead12ad0be063b1e518640666a74d3 SHA1 192c1599e86a6106d69a163689a42c5e9b370b73 SHA256 f813996fe966e4d01ef24b6486d99a2ac0f32ab1777700d9d7792b4b671154ba diff --git a/dev-python/lxml/files/gtk-threading-filename-guessing.patch b/dev-python/lxml/files/gtk-threading-filename-guessing.patch new file mode 100644 index 0000000..a48f258 --- /dev/null +++ b/dev-python/lxml/files/gtk-threading-filename-guessing.patch @@ -0,0 +1,35 @@ +=== src/lxml/apihelpers.pxi +================================================================== +--- src/lxml/apihelpers.pxi (revision 3804) ++++ src/lxml/apihelpers.pxi (revision 3805) +@@ -1107,20 +1107,16 @@ + Returns None if not a file object. + """ + # file instances have a name attribute +- try: +- return source.name +- except AttributeError: +- pass ++ filename = getattr3(source, 'name', None) ++ if filename is not None: ++ return filename + # gzip file instances have a filename attribute +- try: +- return source.filename +- except AttributeError: +- pass ++ filename = getattr3(source, 'filename', None) ++ if filename is not None: ++ return filename + # urllib2 provides a geturl() method +- try: +- geturl = source.geturl +- except AttributeError: +- # can't determine filename +- return None +- else: ++ geturl = getattr3(source, 'geturl', None) ++ if geturl is not None: + return geturl() ++ # can't determine filename ++ return None diff --git a/dev-python/lxml/files/parse-gtk-problem.patch b/dev-python/lxml/files/parse-gtk-problem.patch new file mode 100644 index 0000000..e8aafdf --- /dev/null +++ b/dev-python/lxml/files/parse-gtk-problem.patch @@ -0,0 +1,45 @@ +=== src/lxml/parser.pxi +================================================================== +--- src/lxml/parser.pxi (revision 3798) ++++ src/lxml/parser.pxi (revision 3799) +@@ -1294,10 +1294,22 @@ + + cdef _Document _parseDocument(source, _BaseParser parser, base_url): + cdef _Document doc ++ if _isString(source): ++ # parse the file directly from the filesystem ++ doc = _parseDocumentFromURL(_encodeFilename(source), parser) ++ # fix base URL if requested ++ if base_url is not None: ++ base_url = _encodeFilenameUTF8(base_url) ++ if doc._c_doc.URL is not NULL: ++ tree.xmlFree(doc._c_doc.URL) ++ doc._c_doc.URL = tree.xmlStrdup(_cstr(base_url)) ++ return doc ++ + if base_url is not None: + url = base_url + else: + url = _getFilenameForFile(source) ++ + if hasattr(source, 'getvalue') and hasattr(source, 'tell'): + # StringIO - reading from start? + if source.tell() == 0: +@@ -1309,16 +1321,7 @@ + return _parseFilelikeDocument( + source, _encodeFilenameUTF8(url), parser) + +- # Otherwise parse the file directly from the filesystem +- filename = _encodeFilename(source) +- doc = _parseDocumentFromURL(filename, parser) +- # fix base URL if requested +- if base_url is not None: +- base_url = _encodeFilenameUTF8(base_url) +- if doc._c_doc.URL is not NULL: +- tree.xmlFree(doc._c_doc.URL) +- doc._c_doc.URL = tree.xmlStrdup(_cstr(base_url)) +- return doc ++ raise TypeError("cannot parse from '%s'" % python._fqtypename(source)) + + cdef _Document _parseDocumentFromURL(url, _BaseParser parser): + cdef xmlDoc* c_doc diff --git a/dev-python/lxml/lxml-2.0.2-r1.ebuild b/dev-python/lxml/lxml-2.0.2-r1.ebuild new file mode 100644 index 0000000..6dc7329 --- /dev/null +++ b/dev-python/lxml/lxml-2.0.2-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-python/lxml/lxml-2.0.2.ebuild,v 1.2 2008/03/16 23:09:33 jer Exp $ + +NEED_PYTHON="2.3" + +inherit distutils eutils multilib + +DESCRIPTION="A Pythonic binding for the libxml2 and libxslt libraries" +HOMEPAGE="http://codespeak.net/lxml/" +SRC_URI="http://codespeak.net/lxml/${P}.tgz" +LICENSE="BSD ElementTree GPL-2 PSF-2.4" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~x86" +IUSE="doc examples" + +# Note: This version comes with it's own bundled svn version of pyrex +RDEPEND=">=dev-libs/libxml2-2.6.20 + >=dev-libs/libxslt-1.1.15" +DEPEND="${RDEPEND} + >=dev-python/setuptools-0.6_rc5 + >=dev-python/cython-0.9.6.12" + +src_compile () { + rm ${S}/src/lxml/lxml.*.c + #epatch "${FILESDIR}/parse-gtk-problem.patch" + epatch "${FILESDIR}/gtk-threading-filename-guessing.patch" + distutils_src_compile +} + +src_install() { + distutils_src_install + + if use doc; then + dohtml doc/html/* + dodoc *.txt + docinto doc + dodoc doc/*.txt + fi + + if use examples; then + insinto /usr/share/doc/${PF}/examples + doins -r samples/* + fi +} + +src_test() { + distutils_python_version + python setup.py build_ext -i || die "building extensions for test use failed" + einfo "Running test" + "${python}" test.py || die "tests failed" + export PYTHONPATH="${PYTHONPATH}:${S}/src" + einfo "Running selftest" + "${python}" selftest.py || die "selftest failed" + einfo "Running selftest2" + "${python}" selftest2.py || die "selftest2 failed" +} diff --git a/games-arcade/supertux/Manifest b/games-arcade/supertux/Manifest new file mode 100755 index 0000000..9142e89 --- /dev/null +++ b/games-arcade/supertux/Manifest @@ -0,0 +1,8 @@ +DIST supertux-0.3.0.tar.bz2 37101881 RMD160 1c7c54c7e47e7143091f2a8ea73414e8e66ea81f SHA1 3a2b7ff90759982af697ecf62243b4ec2736ac53 SHA256 2d9b5807ba805483bfe5dd675d78f2b5155f1ea0db1fdf5739a028d60b04d9cc +EBUILD supertux-0.3.0.ebuild 1139 RMD160 ad9e7abb2dabd9722c6f677e94c6da2e059ed406 SHA1 459538eb25e459cc84a15593aa47b2f5074f187e SHA256 0c6415bce56d8458756a176b066e83e0fd9b4d4b7a0e3f17097e0d0201441874 +MD5 80ed9b8394657592aa1039a6ab8f794d supertux-0.3.0.ebuild 1139 +RMD160 ad9e7abb2dabd9722c6f677e94c6da2e059ed406 supertux-0.3.0.ebuild 1139 +SHA256 0c6415bce56d8458756a176b066e83e0fd9b4d4b7a0e3f17097e0d0201441874 supertux-0.3.0.ebuild 1139 +MD5 7b7fae9a859450a917974f0ce6c0be4e files/digest-supertux-0.3.0 253 +RMD160 4ca6ab54354bf16671bf15f1def3dca324c718ef files/digest-supertux-0.3.0 253 +SHA256 510e2ae6c23821b91ed8d4cac272999c4d76f89a1ac9c8243bbe61f936c6a7b8 files/digest-supertux-0.3.0 253 diff --git a/games-arcade/supertux/files/digest-supertux-0.3.0 b/games-arcade/supertux/files/digest-supertux-0.3.0 new file mode 100755 index 0000000..6c623d6 --- /dev/null +++ b/games-arcade/supertux/files/digest-supertux-0.3.0 @@ -0,0 +1,3 |