summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-laptop/lenovo-sl-laptop/ChangeLog39
-rw-r--r--app-laptop/lenovo-sl-laptop/Manifest7
-rw-r--r--app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090607.ebuild31
-rw-r--r--app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090809.ebuild31
-rw-r--r--app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-99999999.ebuild29
-rw-r--r--app-laptop/lenovo-sl-laptop/metadata.xml7
-rw-r--r--dev-python/python-cjson/ChangeLog8
-rw-r--r--dev-python/python-cjson/Manifest4
-rw-r--r--dev-python/python-cjson/metadata.xml7
-rw-r--r--dev-python/python-cjson/python-cjson-1.0.5.ebuild17
-rw-r--r--dev-ruby/rcsparse/Manifest1
-rw-r--r--dev-ruby/rcsparse/rcsparse-9999.ebuild21
-rw-r--r--eclass/java-webapp.eclass200
-rw-r--r--java-webapps/blojsom/ChangeLog7
-rw-r--r--java-webapps/blojsom/Manifest4
-rw-r--r--java-webapps/blojsom/blojsom-3.1.ebuild113
-rw-r--r--java-webapps/blojsom/metadata.xml7
-rw-r--r--java-webapps/test/ChangeLog7
-rw-r--r--java-webapps/test/Manifest4
-rw-r--r--java-webapps/test/metadata.xml7
-rw-r--r--java-webapps/test/test-0.ebuild60
-rw-r--r--licenses/Wink1
-rw-r--r--net-wireless/b43-firmware/Manifest2
-rw-r--r--net-wireless/b43-firmware/b43-firmware-4.174.64.19-r1.ebuild32
-rw-r--r--net-wireless/b43-fwcutter/Manifest2
-rw-r--r--net-wireless/b43-fwcutter/b43-fwcutter-013_pre20100326.ebuild42
-rw-r--r--profiles/categories1
-rw-r--r--profiles/repo_name1
-rw-r--r--profiles/use.desc3
-rwxr-xr-xscripts/eshowkw.py162
-rwxr-xr-xscripts/generate-userlibraries.sh71
-rwxr-xr-xscripts/sys-gentoo-weight.py74
-rwxr-xr-xscripts/sys-unneeded-distfiles.py179
-rw-r--r--skel.ChangeLog67
-rw-r--r--sys-apps/netselect/ChangeLog9
-rw-r--r--sys-apps/netselect/Manifest6
-rw-r--r--sys-apps/netselect/metadata.xml7
-rw-r--r--sys-apps/netselect/netselect-1.3.0.ebuild33
-rw-r--r--sys-apps/netselect/netselect-1.4.0.ebuild33
-rw-r--r--www-apache/mod_npy/ChangeLog7
-rw-r--r--www-apache/mod_npy/Manifest4
-rw-r--r--www-apache/mod_npy/metadata.xml7
-rw-r--r--www-apache/mod_npy/mod_npy-0.3.3.ebuild41
-rw-r--r--x11-misc/wink/ChangeLog10
-rw-r--r--x11-misc/wink/Manifest4
-rw-r--r--x11-misc/wink/metadata.xml7
-rw-r--r--x11-misc/wink/wink-1.5.1060.ebuild54
47 files changed, 1470 insertions, 0 deletions
diff --git a/app-laptop/lenovo-sl-laptop/ChangeLog b/app-laptop/lenovo-sl-laptop/ChangeLog
new file mode 100644
index 0000000..2520229
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/ChangeLog
@@ -0,0 +1,39 @@
+# ChangeLog for app-laptop/lenovo-sl-laptop
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*lenovo-sl-laptop-20090607 (07 Jun 2009)
+
+ 07 Jun 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ -files/lenovo-sl-laptop-2.6.30.patch, -lenovo-sl-laptop-20090219.ebuild,
+ +lenovo-sl-laptop-20090607.ebuild:
+ Version bump.
+
+ 04 Jun 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ +files/lenovo-sl-laptop-2.6.30.patch, lenovo-sl-laptop-20090219.ebuild:
+ Add patch for kernels >= 2.6.30.
+
+ 24 Mar 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ +lenovo-sl-laptop-99999999.ebuild:
+ Live version.
+
+ 08 Mar 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ -lenovo-sl-laptop-20090211.ebuild, -lenovo-sl-laptop-20090215.ebuild,
+ -lenovo-sl-laptop-20090216.ebuild:
+ Remove old versions.
+
+ 19 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ +lenovo-sl-laptop-20090219.ebuild:
+ Version bump.
+
+ 16 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ +lenovo-sl-laptop-20090216.ebuild:
+ Version bump.
+
+ 15 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ +lenovo-sl-laptop-20090215.ebuild:
+ Version bump.
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml:
+ Add metadata.
+
diff --git a/app-laptop/lenovo-sl-laptop/Manifest b/app-laptop/lenovo-sl-laptop/Manifest
new file mode 100644
index 0000000..a306305
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/Manifest
@@ -0,0 +1,7 @@
+DIST lenovo-sl-laptop-20090607.tar.bz2 9393 RMD160 6687780d7c0c25c2d89b23f14659b1e9ee9201dc SHA1 223d57b11b71f8774cdcf89a5d680b5a203978f1 SHA256 80441e3957122c31547712c648b35b355ea725dc25e49fe5f90ee947cdadc22b
+DIST lenovo-sl-laptop-20090809.tar.bz2 9844 RMD160 3bd7c8ae176bee5c026bd92c4b9589eec80b72b2 SHA1 10eb315c390b4bf1d195d4efdfc75deed89fe4cc SHA256 07575ba506fedf79811970008892ae38281e958bb9adaa6dc759540a904ddc22
+EBUILD lenovo-sl-laptop-20090607.ebuild 593 RMD160 e707ee02d5cf80cae0c5f6d95a5ec9d98a8ba341 SHA1 55eb4079294d87f9e2eb28b852646e105cf8a0d3 SHA256 eccebf44a1061419ac839de9c26519a1bfca7374b1bff6d46bd73613e1aab558
+EBUILD lenovo-sl-laptop-20090809.ebuild 600 RMD160 bc5284fa9d0f2f7b3057713b3d1c5a1828e974dc SHA1 c1d144676d31f8b38ec384c7e8711403f19878a2 SHA256 4e24c1dd4e9bfaf3b982c74624231147081f6f12155d6fa53127fa9a8ef0d4e2
+EBUILD lenovo-sl-laptop-99999999.ebuild 583 RMD160 921dedc56137b8b06f0b9b6980dc17d037a3ba78 SHA1 4e936892db138207843e53c3387ddf23713695dd SHA256 5faffc6b61bc81dbca47c3e13a9c2004c23ed37fd3e5f8db982009ff0a9d5d23
+MISC ChangeLog 1214 RMD160 a1db6674772e8fe2d7237fc4bef7904bd8183752 SHA1 f14ad6335d5f01fc898bcc2e84ea554264ad4f91 SHA256 91be2eace5cdd6b3a7cfd2119f7b6e843ab1acaf7abeda2a383e885108dd314a
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090607.ebuild b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090607.ebuild
new file mode 100644
index 0000000..137e24e
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090607.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI="2"
+
+inherit linux-info linux-mod
+
+DESCRIPTION="Driver for Lenovo ThinkPad SL laptops."
+HOMEPAGE="http://github.com/tetromino/lenovo-sl-laptop/tree/master"
+SRC_URI="http://dev.gentoo.org/~nelchael/distfiles/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+CONFIG_CHECK="HWMON BACKLIGHT_CLASS_DEVICE"
+
+MODULE_NAMES="${PN}(acpi)"
+BUILD_TARGETS="module"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ linux-mod_src_install
+ dodoc README
+}
diff --git a/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090809.ebuild b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090809.ebuild
new file mode 100644
index 0000000..8c11621
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-20090809.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+EAPI="2"
+
+inherit linux-info linux-mod
+
+DESCRIPTION="Driver for Lenovo ThinkPad SL laptops."
+HOMEPAGE="http://github.com/tetromino/lenovo-sl-laptop/tree/master"
+SRC_URI="http://dev.gentoo.org/~nelchael/distfiles/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+CONFIG_CHECK="HWMON BACKLIGHT_CLASS_DEVICE RFKILL"
+
+MODULE_NAMES="${PN}(acpi)"
+BUILD_TARGETS="module"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ linux-mod_src_install
+ dodoc README
+}
diff --git a/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-99999999.ebuild b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-99999999.ebuild
new file mode 100644
index 0000000..03ffe90
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/lenovo-sl-laptop-99999999.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+inherit linux-info linux-mod eutils git
+
+DESCRIPTION="Driver for Lenovo ThinkPad SL laptops."
+HOMEPAGE="http://github.com/tetromino/lenovo-sl-laptop/tree/master"
+LICENSE="GPL-2"
+EGIT_REPO_URI="git://github.com/tetromino/lenovo-sl-laptop"
+
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+CONFIG_CHECK="HWMON BACKLIGHT_CLASS_DEVICE"
+
+MODULE_NAMES="${PN}(acpi)"
+BUILD_TARGETS="module"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ linux-mod_src_install
+ dodoc README
+}
diff --git a/app-laptop/lenovo-sl-laptop/metadata.xml b/app-laptop/lenovo-sl-laptop/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/app-laptop/lenovo-sl-laptop/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-cjson/ChangeLog b/dev-python/python-cjson/ChangeLog
new file mode 100644
index 0000000..72e0e0e
--- /dev/null
+++ b/dev-python/python-cjson/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-python/python-cjson
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml,
+ python-cjson-1.0.5.ebuild:
+ Fix copyright year, add metadata.
+
diff --git a/dev-python/python-cjson/Manifest b/dev-python/python-cjson/Manifest
new file mode 100644
index 0000000..2895adf
--- /dev/null
+++ b/dev-python/python-cjson/Manifest
@@ -0,0 +1,4 @@
+DIST python-cjson-1.0.5.tar.gz 10978 RMD160 c1256cf176af3194233de3704ec07ab4ccfb522c SHA1 a00519debfdc6dcc33acfe68dc10ee4866fdcd8b SHA256 85bbe7a9fb6617e24bb4dbef528af8ef6eae07f8809dcd05ec926142feca7714
+EBUILD python-cjson-1.0.5.ebuild 370 RMD160 c465238efe46e3920e225ac99ffb077f29924a89 SHA1 9a240d73a40cdb320409526ef71fc0c5dc1352a5 SHA256 36a8c42f19df83bb88a53bafbf7c9fd70172ceb430fa68e5627839ff50477573
+MISC ChangeLog 258 RMD160 fdb01a9e44dbccebfa7a0a32f30bec6f04d11d47 SHA1 db9d16df3dd70920ff7a1ce1a759384b0633ab16 SHA256 bbf59b82b095bbfa050b709b6ed9413aee9605feec3d210007a086a18dc2ec38
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/dev-python/python-cjson/metadata.xml b/dev-python/python-cjson/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/dev-python/python-cjson/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-python/python-cjson/python-cjson-1.0.5.ebuild b/dev-python/python-cjson/python-cjson-1.0.5.ebuild
new file mode 100644
index 0000000..027230d
--- /dev/null
+++ b/dev-python/python-cjson/python-cjson-1.0.5.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit distutils
+
+DESCRIPTION="Fast JSON encoder/decoder for Python"
+HOMEPAGE="http://ag-projects.com/"
+SRC_URI="http://pypi.python.org/packages/source/p/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
diff --git a/dev-ruby/rcsparse/Manifest b/dev-ruby/rcsparse/Manifest
new file mode 100644
index 0000000..f933409
--- /dev/null
+++ b/dev-ruby/rcsparse/Manifest
@@ -0,0 +1 @@
+EBUILD rcsparse-9999.ebuild 387 RMD160 758d2376e8f54978b6580b240519c7c35579b45c SHA1 fb8873f124f8ec87338bc648936c957d25de51a4 SHA256 643fe5a47773281cbbb5a87033ccef9a0383f24ceea5e980309fb992065c35e2
diff --git a/dev-ruby/rcsparse/rcsparse-9999.ebuild b/dev-ruby/rcsparse/rcsparse-9999.ebuild
new file mode 100644
index 0000000..56a7480
--- /dev/null
+++ b/dev-ruby/rcsparse/rcsparse-9999.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit ruby git
+
+DESCRIPTION="RCS parsing library for Ruby"
+HOMEPAGE="http://gitorious.org/fromcvs"
+SRC_URI=""
+
+EGIT_REPO_URI="git://gitorious.org/fromcvs/rcsparse.git"
+
+LICENSE="BSD-4"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
diff --git a/eclass/java-webapp.eclass b/eclass/java-webapp.eclass
new file mode 100644
index 0000000..c7a3cdd
--- /dev/null
+++ b/eclass/java-webapp.eclass
@@ -0,0 +1,200 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+#
+# Original Author: nelchael
+# Purpose: contains common functions for Java web applications
+#
+
+inherit java-utils-2
+
+DEPENDS="app-arch/zip
+ app-arch/unzip"
+
+# TODO: documentation
+# TODO: list of supported servers?
+
+# Keep this list sorted!
+SUPPORTED_WEB_SERVERS="
+ www-servers/jboss
+ www-servers/jetty
+ www-servers/resin
+ www-servers/tomcat
+"
+
+EXPORT_FUNCTIONS pkg_postinst
+
+function _resolve_symlink() {
+
+ debug-print-function ${FUNCNAME} $*
+
+ [[ -z "${1}" ]] && die "Missing symlink name"
+
+ local fn="$(find "${S}" -type l -name "${1}")"
+ [[ -z "${fn}" ]] && return
+ readlink "${fn}" || die "readlink failed"
+
+}
+
+function _get_owning_package() {
+
+ debug-print-function ${FUNCNAME} $*
+
+ [[ -z "${1}" ]] && die "Missing jar name"
+ grep "^${1}@" "${T}/java-pkg-depend" | cut -d '@' -f 2
+
+}
+
+function _ensure_owner() {
+
+ debug-print-function ${FUNCNAME} $*
+
+ [[ -z "${1}" ]] && die "Missing package name"
+ [[ -n "$(grep -E "@?${1}" "${T}/java-pkg-depend")" ]]
+
+}
+
+function _postprocess_war() {
+
+ debug-print-function ${FUNCNAME} $*
+
+ [[ ${#} != 1 ]] && die "Missing argument!"
+
+ if [[ -z "$(unzip -t "${1}" | grep WEB-INF/lib/)" ]]; then
+ ewarn 'No WEB-INF/lib found in archive!'
+ return
+ fi
+
+ echo ">>> Post processing $(basename "${1}") ..."
+
+ local extract_dir="java-webapp-unpacked-${PN}-${SLOT}-${PV}"
+
+ mkdir -p "${T}/${extract_dir}" || die "failed to create ${T}/${extract_dir}"
+
+ cd "${T}/${extract_dir}/"
+ unzip -qq "${1}" || die "failed to unpack war"
+
+ cd WEB-INF/lib
+ local unknown=
+
+ for i in *.jar; do
+
+ # Check if this jar is owned by package:
+ if hasq "${i}" ${WEBAPP_OWNED_JARS}; then
+ echo ">>> Package owned jar: ${i}, skipping"
+ continue
+ fi
+
+ local destname="${i}"
+ local owner=$(_get_owning_package "${i}")
+
+ if [[ -z "${owner}" ]]; then
+
+ # No owner -> try to find the original symlink in ${S}
+ local original="$(_resolve_symlink "${i}")"
+ if [[ -z "${original}" ]]; then
+ unknown="${unknown} ${i}"
+ echo ">>> No package owns ${i}, skipping"
+ continue
+ fi
+
+ destname="$(basename "${original}")"
+ owner="$(echo "${original}" | cut -d / -f 4)"
+
+ fi
+
+ _ensure_owner "${owner}" || die "Package ${owner} not recorded"
+
+ rm -f "${i}" || die "rm \"${i}\" failed"
+ echo ">>> Symlinking ${i} (${owner}) to WEB-INF/lib/"
+ ln -s "/usr/share/${owner}/lib/${destname}" "${i}" || \
+ die "failed to create symlink to \"${i}\""
+
+ done
+
+ local tmp_war="${T}/tmp-$(basename "${1}")"
+ cd "${T}/${extract_dir}/"
+ echo ">>> Recreating $(basename "${1}")"
+ zip -qyr9 "${tmp_war}" * || die "zip failed"
+
+ cd "${T}"
+ rm -rf "${extract_dir}"
+
+ rm -f "${1}" || die "failed to remove original war"
+ mv "${tmp_war}" "${1}" || die "failed to move recreated war file"
+
+ if [[ -n "${unknown}" ]]; then
+
+ ewarn "Following java archives not owned by any installed package were"
+ ewarn "found in web archive $(basename "${2}"):"
+ ewarn
+ for i in ${unknown}; do
+ ewarn " ${i}"
+ done
+ ewarn
+ ewarn "If the archives above were built by ${CATEGORY}/${P} they should"
+ ewarn "be added to WEBAPP_OWNED_JARS in ebuild, if these are"
+ ewarn "a third-party libraries then this is a bug, please report"
+ ewarn "this to http://bugs.gentoo.org/"
+
+ fi
+
+}
+
+function java-webapp_newwar() {
+
+ debug-print-function ${FUNCNAME} $*
+
+ [[ -z "${1}" ]] && die "Missing old war file name"
+ [[ -z "${2}" ]] && die "Missing new war file name"
+
+ local newname="$(basename "${2}")"
+
+ java-pkg_init_paths_
+
+ dodir "${JAVA_PKG_WARDEST}"
+ insinto "${JAVA_PKG_WARDEST}"
+ newins "${1}" "${newname}"
+
+}
+
+function java-webapp_dowar() {
+
+ [[ -z "${1}" ]] && die "Missing war file name"
+ java-webapp_newwar "${1}" "$(basename "${1}")"
+
+}
+
+function post_src_install() {
+
+ java-pkg_init_paths_
+
+ for i in $(find "${D}/${JAVA_PKG_WARDEST}" -name '*.war' | sort); do
+ _postprocess_war "${i}"
+ done
+
+}
+
+function java-webapp_pkg_postinst() {
+
+ elog "To use this web application create a symlink to installed .war file"
+ elog "in server webapps directory."
+
+ local foundServer=no
+ for i in ${SUPPORTED_WEB_SERVERS}; do
+ has_version "${i}" && foundServer=yes
+ done
+
+ if [[ "${foundServer}" = "no" ]]; then
+
+ elog
+ elog "It looks like you don't have any supported web server installed,"
+ elog "please emerge one of:"
+ for i in ${SUPPORTED_WEB_SERVERS}; do
+ elog " ${i}"
+ done
+
+ fi
+
+}
diff --git a/java-webapps/blojsom/ChangeLog b/java-webapps/blojsom/ChangeLog
new file mode 100644
index 0000000..86ac181
--- /dev/null
+++ b/java-webapps/blojsom/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for java-webapps/blojsom
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml:
+ Add metadata.
+
diff --git a/java-webapps/blojsom/Manifest b/java-webapps/blojsom/Manifest
new file mode 100644
index 0000000..417b998
--- /dev/null
+++ b/java-webapps/blojsom/Manifest
@@ -0,0 +1,4 @@
+DIST blojsom-3.1-source.zip 12466958 RMD160 c10fbed10eea83f027a3199a6857f2463e075e82 SHA1 b430d899a678a916ab74ac8a16cf9b2d76d58940 SHA256 cf5e84cee18297650cedbfef6dac8f2ef65a7da9cc739e18bfc0a805d7ea317f
+EBUILD blojsom-3.1.ebuild 2424 RMD160 a140bcef6708d58a79999ce5bb1b8e990b993272 SHA1 441824536d2d53b8607b6b1600ce85b440db17f1 SHA256 0a4cd347ccda27723e2d9370584bf48bb279a43cb5af3c2cf69163f97188c0b5
+MISC ChangeLog 206 RMD160 4221b2d47486e5cba09a4c36ca55602e1b48cfdb SHA1 9ef4a02148794d6879ecebdef629a83cf212155b SHA256 27f6d9b21eac48499c4c4fbe3035e59d19c43f9cb57e01239492731036496573
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/java-webapps/blojsom/blojsom-3.1.ebuild b/java-webapps/blojsom/blojsom-3.1.ebuild
new file mode 100644
index 0000000..a56dfac
--- /dev/null
+++ b/java-webapps/blojsom/blojsom-3.1.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+JAVA_PKG_IUSE=""
+
+inherit java-pkg-2 java-ant-2 java-webapp
+
+DESCRIPTION="Some blogging software"
+HOMEPAGE="http://blojsom.sourceforge.net/"
+SRC_URI="mirror://sourceforge/blojsom/${P}-source.zip"
+
+LICENSE="BSD"
+SLOT="3"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+# I know, there are few bundled jars, but that's not important for java-webapp
+# eclass and also it nicely shows the warning showed by java-webapp ;)
+COMMON_DEPS="
+ =dev-java/asm-3*
+ =dev-java/cglib-2.1*
+ =dev-java/commons-io-1*
+ =dev-java/ehcache-1.2*
+ =dev-java/hibernate-3.1*
+ =dev-java/servletapi-2.4*
+ dev-java/xmlrpc
+ dev-java/antlr
+ dev-java/c3p0
+ dev-java/commons-codec
+ dev-java/commons-collections
+ dev-java/commons-dbcp
+ dev-java/commons-fileupload
+ dev-java/commons-logging
+ dev-java/commons-pool
+ dev-java/dom4j
+ dev-java/jta
+ dev-java/junit
+ dev-java/log4j
+ dev-java/sun-jaf
+ dev-java/sun-javamail
+ dev-java/velocity
+"
+
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEPS}"
+RDEPEND=">=virtual/jdk-1.4
+ ${COMMON_DEPS}"
+
+S="${WORKDIR}"
+
+WEBAPP_OWNED_JARS="blojsom-core-3.1.jar
+ blojsom-extensions-3.1.jar
+ blojsom-plugins-3.1.jar
+ blojsom-plugins-templates-3.1.jar
+ blojsom-resources-3.1.jar"
+
+src_unpack() {
+
+ unpack ${A}
+
+ cd "${S}/lib"
+ rm -fv *.jar
+ java-pkg_jar-from junit
+ java-pkg_jar-from servletapi-2.4
+
+ cd "${S}/war/WEB-INF/lib/"
+ rm -fv activation*
+ rm -fv antlr-*
+ rm -fv asm-*
+ rm -fv blojsom-*
+ rm -fv c3p0*
+ rm -fv cglib-*
+ rm -fv commons-{codec,collections,dbcp,fileupload,io,logging,pool}*
+ rm -fv dom4j*
+ rm -fv ehcache-*
+ rm -fv hibernate-*
+ rm -fv jta*
+ rm -fv log4j*
+ rm -fv mail* smtp*
+ rm -fv velocity*
+ rm -fv xmlrpc-*
+ java-pkg_jar-from antlr
+ java-pkg_jar-from asm-3
+ java-pkg_jar-from c3p0
+ java-pkg_jar-from cglib-2.1
+ java-pkg_jar-from commons-codec
+ java-pkg_jar-from commons-collections
+ java-pkg_jar-from commons-dbcp
+ java-pkg_jar-from commons-fileupload
+ java-pkg_jar-from commons-io-1
+ java-pkg_jar-from commons-logging
+ java-pkg_jar-from commons-pool
+ java-pkg_jar-from dom4j-1
+ java-pkg_jar-from ehcache-1.2
+ java-pkg_jar-from hibernate-3.1
+ java-pkg_jar-from jta
+ java-pkg_jar-from log4j
+ java-pkg_jar-from sun-jaf
+ java-pkg_jar-from sun-javamail
+ java-pkg_jar-from velocity
+ java-pkg_jar-from xmlrpc
+
+}
+
+src_compile() {
+ eant war
+}
+
+src_install() {
+ java-webapp_dowar "${S}/distro/${PN}.war"
+}
diff --git a/java-webapps/blojsom/metadata.xml b/java-webapps/blojsom/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/java-webapps/blojsom/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/java-webapps/test/ChangeLog b/java-webapps/test/ChangeLog
new file mode 100644
index 0000000..ab1b4fe
--- /dev/null
+++ b/java-webapps/test/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for java-webapps/test
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +metadata.xml:
+ Add metadata.
+
diff --git a/java-webapps/test/Manifest b/java-webapps/test/Manifest
new file mode 100644
index 0000000..d3ef09e
--- /dev/null
+++ b/java-webapps/test/Manifest
@@ -0,0 +1,4 @@
+DIST test-0.tar.bz2 19885 RMD160 f3e05961c54c74fcd3ccca7b9041453a48dd20ff SHA1 3bd8c60ccafabc8179cf8ce11db68fef32aaf851 SHA256 ea8ee0f145b2eae5500b7b4451d03f4be2b058f3134becf842a8d795364fc53c
+EBUILD test-0.ebuild 1206 RMD160 87802f9f0d0f47dd3438968a473650937b52dcf6 SHA1 b7bd91bd78262b2c421c19c4c2a1192e29d0b5bf SHA256 b961a99c9f47fe828197a8daa37b699a84cdb01776725a431e5ddff204e394b8
+MISC ChangeLog 203 RMD160 097cddab1979fc96f5c9023d4813b26291d10714 SHA1 590b0c63d7d94b22f0370c7c012dbaaae4197aa9 SHA256 2f2ef1dcf517b1d18a02e8286b9373d7505107734492816451be3b0a50c45cf1
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/java-webapps/test/metadata.xml b/java-webapps/test/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/java-webapps/test/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/java-webapps/test/test-0.ebuild b/java-webapps/test/test-0.ebuild
new file mode 100644
index 0000000..35957e4
--- /dev/null
+++ b/java-webapps/test/test-0.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+JAVA_PKG_IUSE="source"
+
+inherit java-pkg-2 java-ant-2 java-webapp
+
+DESCRIPTION="Private ebuild for java-webapps.eclass testing"
+HOMEPAGE="http://localhost/"
+SRC_URI="http://dev.gentoo.org/~nelchael/test-0.tar.bz2"
+
+RESTRICT="mirror"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPS="
+ dev-java/ant-core
+ =dev-java/resin-servlet-api-3.0*
+ dev-java/jdynamite
+"
+
+DEPEND="=virtual/jdk-1.5*
+ ${COMMON_DEPS}"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPS}"
+
+src_unpack() {
+
+ unpack ${A}
+ cd "${S}/lib"
+ rm -f *.jar
+
+ # This tests "normal" from:
+ java-pkg_jar-from resin-servlet-api-2.4
+ # This tests rename:
+ java-pkg_jar-from jdynamite jdynamite.jar jd.jar
+ # This doesn't record individual jar names:
+ java-pkg_jar-from ant-core,ant-core
+ # Get out-of-portage jars - tests missing jars:
+ touch phony
+ zip -q9 "${S}/lib/0000.jar" phony
+ zip -q9 "${S}/lib/dddd.jar" phony
+ zip -q9 "${S}/lib/zzzz.jar" phony
+
+
+}
+
+src_compile() {
+ eant war || die "eant failed"
+}
+
+src_install() {
+
+ java-webapp_newwar "${S}/test-0.war" "${PN}.war"
+ use source && java-pkg_dosrc "${S}"/src/*
+
+}
diff --git a/licenses/Wink b/licenses/Wink
new file mode 100644
index 0000000..464236d
--- /dev/null
+++ b/licenses/Wink
@@ -0,0 +1 @@
+Distributed as freeware for business or personal use. However if you want to redistribute Wink, you need to get permission from the author.
diff --git a/net-wireless/b43-firmware/Manifest b/net-wireless/b43-firmware/Manifest
new file mode 100644
index 0000000..4347a87
--- /dev/null
+++ b/net-wireless/b43-firmware/Manifest
@@ -0,0 +1,2 @@
+DIST broadcom-wl-4.178.10.4.tar.bz2 5986780 RMD160 6fe9de66ef4ac242da8c8c63e401d771429de4b8 SHA1 ad5b3170cb9c72636e84392aefcdacf306270938 SHA256 32f6ad98facbb9045646fdc8b54bb03086d204153253f9c65d0234a5d90ae53f
+EBUILD b43-firmware-4.174.64.19-r1.ebuild 933 RMD160 41ab634e3c00592e6def5b8d9f6db3c33f3b725e SHA1 0ee0723c56bb38b1fc21e650f33f581718439850 SHA256 270e8fc707afcdfa74de863cc1372a44998b34e85b37483ff8f6ee4d67f9ec7b
diff --git a/net-wireless/b43-firmware/b43-firmware-4.174.64.19-r1.ebuild b/net-wireless/b43-firmware/b43-firmware-4.174.64.19-r1.ebuild
new file mode 100644
index 0000000..b09c1c5
--- /dev/null
+++ b/net-wireless/b43-firmware/b43-firmware-4.174.64.19-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/b43-firmware/b43-firmware-4.174.64.19.ebuild,v 1.1 2010/01/09 21:30:37 vapier Exp $
+
+: ${B43_FIRMWARE_SRC_OBJ:=wl_apsta.o}
+
+# The tarball is mislabeled as "4.178.10.4", but it is actually 4.174.64.19
+MY_P="broadcom-wl-4.178.10.4"
+DESCRIPTION="broadcom firmware for b43 LP PHY and >=linux-2.6.32"
+HOMEPAGE="http://linuxwireless.org/en/users/Drivers/b43"
+SRC_URI="http://downloads.openwrt.org/sources/${MY_P}.tar.bz2"
+
+LICENSE="as-is"
+SLOT="b43"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="nomirror binchecks strip"
+
+DEPEND=">net-wireless/b43-fwcutter-012"
+RDEPEND=""
+
+S="${WORKDIR}/${MY_P}"
+
+src_compile() {
+ mkdir ebuild-output
+ b43-fwcutter -w ebuild-output $(find -name ${B43_FIRMWARE_SRC_OBJ}) || die
+}
+
+src_install() {
+ insinto /lib/firmware
+ doins -r ebuild-output/* || die
+}
diff --git a/net-wireless/b43-fwcutter/Manifest b/net-wireless/b43-fwcutter/Manifest
new file mode 100644
index 0000000..d16d0f2
--- /dev/null
+++ b/net-wireless/b43-fwcutter/Manifest
@@ -0,0 +1,2 @@
+DIST b43-fwcutter-20100326.tar.bz2 15717 RMD160 01ad04d4aa83fcb231ba4eec0ab89a2a42fc059c SHA1 93df31163fa3a07ff6e780deefc3e24d67adc0ca SHA256 3ff9ee3fa36a33e2f9237a005543e8179d2b1f77397ea0dac613b9f3fbc15c96
+EBUILD b43-fwcutter-013_pre20100326.ebuild 1070 RMD160 7fc7165b73a975b90c2001efaa6c612a4ec775a9 SHA1 d388021468f633cf3519a35da1b663316fe1910b SHA256 520c768f428cb891f708ffe40d866b5a64d38a2652d2f4daf52cecaf15a9887c
diff --git a/net-wireless/b43-fwcutter/b43-fwcutter-013_pre20100326.ebuild b/net-wireless/b43-fwcutter/b43-fwcutter-013_pre20100326.ebuild
new file mode 100644
index 0000000..14f9ff0
--- /dev/null
+++ b/net-wireless/b43-fwcutter/b43-fwcutter-013_pre20100326.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/b43-fwcutter/b43-fwcutter-012.ebuild,v 1.1 2009/09/30 18:02:09 josejx Exp $
+
+inherit toolchain-funcs
+
+DESCRIPTION="Firmware Tool for Broadcom 43xx based wireless network devices using the mac80211 wireless stack"
+HOMEPAGE="http://bu3sch.de/b43/fwcutter"
+SRC_URI="http://dev.gentoo.org/~nelchael/distfiles/${PN}-20100326.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+
+IUSE=""
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/fwcutter"
+
+src_compile() {
+ emake CC="$(tc-getCC)" || die "emake failed"
+}
+
+src_install() {
+ # Install fwcutter
+ exeinto /usr/bin
+ doexe ${PN}
+ doman ${PN}.1
+ dodoc README
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Firmware may be downloaded from http://linuxwireless.org."
+ einfo "This version of fwcutter works with all b43 driver versions."
+ einfo
+
+ einfo "Please read this forum thread for help and troubleshooting:"
+ einfo "http://forums.gentoo.org/viewtopic-t-409194.html"
+ einfo
+}
diff --git a/profiles/categories b/profiles/categories
new file mode 100644
index 0000000..b94483a
--- /dev/null
+++ b/profiles/categories
@@ -0,0 +1 @@
+java-webapps
diff --git a/profiles/repo_name b/profiles/repo_name
new file mode 100644
index 0000000..0708aea
--- /dev/null
+++ b/profiles/repo_name
@@ -0,0 +1 @@
+nelchael
diff --git a/profiles/use.desc b/profiles/use.desc
new file mode 100644
index 0000000..a9d2c7f
--- /dev/null
+++ b/profiles/use.desc
@@ -0,0 +1,3 @@
+# Keep them sorted
+
+optipng - Enable optimization for PNG files
diff --git a/scripts/eshowkw.py b/scripts/eshowkw.py
new file mode 100755
index 0000000..39fd26a
--- /dev/null
+++ b/scripts/eshowkw.py
@@ -0,0 +1,162 @@
+#!/usr/bin/python
+
+import sys
+import os
+import portage
+import portage.versions as portage_versions
+import portage.output as output
+
+def resolvePackage(db, item):
+ cpvs = []
+ try:
+ cpvs = db.xmatch('match-all', item)
+ except (Exception), e:
+ print output.red('"%s" matches to more than one package:' % item)
+ for x in e.args[0]:
+ print ' ' + output.green('*') + ' ' + x
+ sys.exit(0)
+ if len(cpvs) == 0:
+ print output.red('Package "%s" not found' % item)
+ if item.find('/') != -1:
+ item = item[item.find('/') + 1:]
+ try:
+ cpvs = db.xmatch('match-all', item)
+ except (Exception), e:
+ print 'Try:'
+ for x in e.args[0]:
+ print ' ' + output.green('*') + ' ' + x
+ sys.exit(0)
+ if len(cpvs) != 0:
+ print 'Try:\n %s' % output.green('*') + ' ' + output.bold(portage_versions.pkgsplit(cpvs[0])[0])
+ sys.exit(0)
+ pkg = portage_versions.pkgsplit(cpvs[0])[0]
+ vers = []
+ for i in cpvs:
+ vers.append(i[len(pkg) + 1:])
+ # Sort versions:
+ verRv = []
+ for i in sorted(vers):
+ skip = False
+ for x in range(len(verRv)):
+ if portage_versions.vercmp(i, verRv[x]) > 0:
+ verRv.insert(x, i)
+ skip = True
+ break
+ if not skip:
+ verRv.append(i)
+ vers = []
+ for i in reversed(verRv):
+ vers.append(i)
+ return ( pkg, vers )
+
+def flagFor(arch, keywords, myArch):
+ maskAll = False
+ for x in keywords:
+ tilde = False
+ maskMe = False
+ if x == '-*':
+ maskAll = True
+ continue
+ if x[0] == '~':
+ x = x[1:]
+ tilde = True
+ if x[0] == '-':
+ x = x[1:]
+ maskMe = True
+ if x == arch:
+ if tilde:
+ if arch == myArch:
+ return output.yellow('~')
+ return output.darkyellow('~')
+ if maskMe:
+ if arch == myArch:
+ return output.red('-')
+ return output.darkred('-')
+ if arch == myArch:
+ return output.green('+')
+ return output.darkgreen('+')
+ if maskAll:
+ if arch == myArch:
+ return output.red('*')
+ return output.darkred('*')
+ return ' '
+
+def showMe(myArch, db, pkg):
+ pkg, versions = resolvePackage(db, pkg)
+ archs = []
+ for i in open(portage.settings['PORTDIR'] + '/profiles/arch.list').readlines():
+ if i == '':
+ break
+ i = i.strip()
+ if i == '' or i[0] == '#':
+ continue
+ if not 'ESHOWKW_ALL_ARCHS' in os.environ and i.find('-') != -1:
+ continue
+ archs.append(i)
+ longestVerLen = 0
+ for i in versions:
+ if len(i) > longestVerLen:
+ longestVerLen = len(i)
+ longestVerLen += 1
+ longestSlot = 0
+ for i in versions:
+ slot = db.aux_get(pkg + '-' + i, [ 'SLOT' ])[0]
+ if len(slot) > longestSlot:
+ longestSlot = len(slot)
+ lines = 0
+ for i in archs:
+ if len(i) > lines:
+ lines = len(i)
+ for i in range(lines):
+ print longestVerLen * ' ' + '|',
+ for x in archs:
+ if x == myArch:
+ if len(x) > i:
+ print output.green(x[i]),
+ else:
+ print ' ',
+ else:
+ if len(x) > i:
+ print x[i],
+ else:
+ print ' ',
+ print '|',
+ print
+ print longestVerLen * '-' + '+-' + len(archs) * '--' + '+-' + (longestSlot + 3) * '-'
+ sys.stdout.flush()
+ prevSlot = None
+ for x in versions:
+ keywords, slot = db.aux_get(pkg + '-' + x, [ 'KEYWORDS', 'SLOT' ])
+ keywords = keywords.split()
+ slot = ' (' + slot + ')'
+ if slot != prevSlot:
+ print output.bold(x + (longestVerLen - len(x)) * ' ') + '|',
+ else:
+ print x + (longestVerLen - len(x)) * ' ' + '|',
+ for a in archs:
+ print flagFor(a, keywords, myArch),
+ if slot != prevSlot:
+ print '|' + output.blue(slot)
+ else:
+ print '|'
+ #print '|' + output.darkblue(slot)
+ prevSlot = slot
+ sys.stdout.flush()
+
+pkg = None
+if len(sys.argv) == 1:
+ if os.getcwd() != '/':
+ pkg = os.path.basename(os.path.dirname(os.getcwd())) + '/' + os.path.basename(os.getcwd())
+ else:
+ print output.red('Can not get package name')
+ sys.exit(1)
+else:
+ pkg = sys.argv[1]
+
+myArch = None
+for i in portage.settings['ACCEPT_KEYWORDS'].split():
+ myArch = i
+ if i[0] == '~':
+ myArch = i[1:]
+
+showMe(myArch, portage.portdbapi(portage.settings['PORTDIR']), pkg)
diff --git a/scripts/generate-userlibraries.sh b/scripts/generate-userlibraries.sh
new file mode 100755
index 0000000..9fc4cf7
--- /dev/null
+++ b/scripts/generate-userlibraries.sh
@@ -0,0 +1,71 @@
+#!/bin/bash
+#
+# 2006, Krzysztof Pawlik - nelchael@gentoo.org
+#
+# This script generates file for User Libraries import for Eclipse.
+# You can find that option in:
+# Window -> Preferences -> Java -> Build Path -> User Libraries
+#
+# All your installed Java packages that register any jar are exported.
+#
+
+function get_name() {
+
+ echo $(echo ${1} | sed -e 's,^.*/share/\(.*\)/package.env$,\1,')
+
+}
+
+function get_desc() {
+
+ cat ${1} | grep ^DESCRIPTION | cut -d '=' -f 2- | sed -e 's/"//g' | sed -e 's,--,,g'
+
+}
+
+function get_libdir() {
+
+ cat ${1} | grep ^LIBRARY_PATH | cut -d '=' -f 2- | sed -e 's/"//g'
+
+}
+
+function find_source() {
+
+ find $(dirname ${1}) -name "*-src.zip" | head -n 1
+
+}
+
+echo '<?xml version="1.0" encoding="UTF-8"?>'
+echo '<eclipse-userlibraries version="2">'
+
+for package in /usr/share/*/package.env; do
+
+ packageName=$(get_name ${package})
+
+ echo ' <library name="'"${packageName}"'" systemlibrary="false">'
+ echo ' <!-- '"$(get_desc ${package})"' -->'
+
+ gotSource=no
+
+ for jar in $(grep ^CLASSPATH ${package} | cut -d = -f 2- | sed -e 's/"//g' | sed -e 's/:/ /g'); do
+
+ echo -n ' <archive path="'"${jar}"'"'
+
+ if [[ -n "$(find_source ${package})" ]]; then
+ echo -n ' source="'"$(find_source ${package})"'"'
+ gotSource=yes
+ fi
+
+ if [[ -n "$(get_libdir ${package})" ]]; then
+ echo -n ' nativelibpaths="'"$(get_libdir ${package})"'"'
+ fi
+
+ echo '/>'
+
+ done
+
+ [[ "${gotSource}" = "no" ]] && echo "Package without source: ${packageName}" >&2
+
+ echo ' </library>'
+
+done
+
+echo '</eclipse-userlibraries>'
diff --git a/scripts/sys-gentoo-weight.py b/scripts/sys-gentoo-weight.py
new file mode 100755
index 0000000..98e023d
--- /dev/null
+++ b/scripts/sys-gentoo-weight.py
@@ -0,0 +1,74 @@
+#!/usr/bin/python
+
+import os, sys, output
+
+spinpos = 0
+spinner = "/-\\|/-\\|/-\\|/-\\|\\-/|\\-/|\\-/|\\-/|"
+
+def update_spinner():
+ global spinner, spinpos
+ spinpos = (spinpos+1) % len(spinner)
+ sys.stdout.write("\b\b "+spinner[spinpos])
+ sys.stdout.flush()
+
+def formatSize(x):
+ x = int(x)
+ if x < 1024:
+ return str(x) + ' B'
+ if x < 1024 * 1024:
+ return '%.2f KB' % (float(x) / 1024)
+ return '%.2f MB' % (float(x) / (1024.0 * 1024.0))
+
+packages = {}
+total_size = 0
+
+print output.blue('Counting... ')
+
+counter = 0
+for category in sorted(os.listdir('/var/db/pkg/')):
+
+ print output.green(' *'),category,' ',
+ update_spinner()
+
+ for package in sorted(os.listdir('/var/db/pkg/' + category)):
+
+ fh = file('/var/db/pkg/' + category + '/' + package + '/CONTENTS')
+ content = fh.readlines()
+ fh.close()
+
+ size = 0
+ for entity in content:
+ counter += 1
+ if counter % 10 == 0:
+ update_spinner()
+ data = entity.strip().split(' ')
+ if data[0] != 'obj':
+ continue
+ try:
+ size += os.path.getsize(data[1])
+ except:
+ if '--report-missing' in sys.argv:
+ print '\n', output.red(' *'), 'File missing:', data[1],
+ pass
+
+ total_size += size
+ packages[category + '/' + package] = size
+
+ print '\b '
+
+print
+
+if '--sort-size' in sys.argv:
+ pkgs = packages.items()
+ pkgs2 = []
+ for pkg in pkgs:
+ pkgs2 += [[ pkg[1], pkg[0] ]]
+ pkgs = pkgs2
+ del(pkgs2)
+ for package in sorted(pkgs):
+ print output.green(' * ') + output.bold(package[1]) + ' - ' + formatSize(package[0])
+else:
+ for package in sorted(packages.keys()):
+ print output.green(' * ') + output.bold(package) + ' - ' + formatSize(packages[package])
+
+print output.green('Total size:'), formatSize(total_size)
diff --git a/scripts/sys-unneeded-distfiles.py b/scripts/sys-unneeded-distfiles.py
new file mode 100755
index 0000000..8deb1ca
--- /dev/null
+++ b/scripts/sys-unneeded-distfiles.py
@@ -0,0 +1,179 @@
+#!/usr/bin/python
+
+# Author: Krzysztof Pawlik <nelchael@gentoo.org>
+# This is released as-is. I'm not responsible if it cooks your cat or dog.
+# You are using it without support, and on your own!
+
+WHITE_LIST = []
+
+import sys, os, portage
+import portage.output as output
+
+if '--help' in sys.argv:
+ print """
+unneded_distfiles.py [options]
+
+Options are:
+ --script - silent, just prints the file names
+ --remove - removes found files
+ --download - list all downloadable files (not fetch RESTRICed)
+ --help - this screen
+"""
+ sys.exit(0)
+
+def formatSize(x):
+ x = int(x)
+ if x < 1024:
+ return str(x) + ' B'
+ if x < 1024 * 1024:
+ return '%.2f KB' % (float(x) / 1024)
+ return '%.2f MB' % (float(x) / (1024.0 * 1024.0))
+
+# spinner code from emerge - great work!
+spinpos = 0
+spinner = "/-\\|/-\\|/-\\|/-\\|\\-/|\\-/|\\-/|\\-/|"
+
+def update_spinner():
+ global spinner, spinpos
+ spinpos = (spinpos+1) % len(spinner)
+ sys.stdout.write("\b\b "+spinner[spinpos])
+ sys.stdout.flush()
+
+silent = False
+remove = False
+downloadable = False
+if '--script' in sys.argv:
+ silent = True
+if '--remove' in sys.argv:
+ remove = True
+if '--download' in sys.argv:
+ downloadable = True
+
+portdir = portage.settings['PORTDIR']
+distdir = portage.settings['DISTDIR']
+
+DBPATHS = [
+ '/var/db/pkg/'
+]
+
+try:
+ f = open('/etc/portage/pkgs-db', 'r')
+ pkgs = f.readlines()
+ f.close()
+ for i in pkgs:
+ i = i.strip()
+ if i[-1:] != '/':
+ DBPATHS.append(i + '/')
+ else:
+ DBPATHS.append(i)
+except:
+ pass
+
+try:
+ f = open('/etc/portage/distfiles.whitelist', 'r')
+ for i in f.readlines():
+ WHITE_LIST.append(i.strip())
+ f.close()
+except:
+ pass
+
+def echo(x):
+ if not silent:
+ print x
+
+echo(output.green('Using portage tree: ') + portdir)
+echo(output.green('Using distfiles directory: ') + distdir)
+echo(output.green('Using DB directories: '))
+for i in DBPATHS:
+ echo(output.blue(' * ') + i)
+
+db = portage.portdbapi(portdir)
+
+if not silent:
+ print output.green('Gathering files... '),
+ update_spinner()
+
+required_files = []
+counter = 0
+
+for dbpkg in DBPATHS:
+
+ try:
+ for category in sorted(os.listdir(dbpkg)):
+
+ if (os.path.isdir(dbpkg + category)):
+
+ for package in sorted(os.listdir(dbpkg + category)):
+
+ if downloadable:
+ try:
+ isRestricted = db.aux_get(category + '/' + package, [ 'RESTRICT' ])[0]
+ isRestricted = isRestricted.split()
+ if not ('fetch' in isRestricted):
+ continue
+ except:
+ continue
+
+ try:
+ src_uri = db.aux_get(category + '/' + package, [ 'SRC_URI' ])[0]
+ except:
+ continue
+ elements = src_uri.split(' ')
+
+ for elem in elements:
+
+ if elem == '(' or elem == ')':
+ continue
+ if elem[-1:] == '?':
+ continue
+
+ counter += 1
+ if counter % 10 == 0 and not silent:
+ update_spinner()
+
+ elem = os.path.basename(elem)
+
+ if not elem in required_files:
+ required_files += [ elem ]
+ except:
+ pass
+
+if not silent:
+ print '\b '
+
+total_size = 0
+count = 0
+for file in sorted(os.listdir(distdir)):
+
+ if file == 'metadata.dtd':
+ continue
+
+ fullpath = os.path.normpath(distdir + '/' + file)
+ if not os.path.isfile(fullpath):
+ continue
+
+ isInWhiteList = False
+ for wl in WHITE_LIST:
+ if file.find(wl) != -1:
+ isInWhiteList = True
+ break
+ if isInWhiteList:
+ continue
+
+ if not file in required_files:
+ total_size += os.path.getsize(fullpath)
+ count += 1
+ echo(output.yellow(' *') + ' Stale file: ' + fullpath + output.blue(' [' + formatSize(os.path.getsize(fullpath)) + ']'))
+ if silent:
+ print fullpath
+ if remove:
+ try:
+ os.unlink(fullpath)
+ except:
+ if silent:
+ sys.stderr.write(' *** Error removing file "' + fullpath + '"\n')
+ else:
+ echo(output.red(' * ') + ' Error removing file.')
+
+echo(output.green('Total unneded files: ') + str(count))
+echo(output.green('Total size: ') + formatSize(total_size))
diff --git a/skel.ChangeLog b/skel.ChangeLog
new file mode 100644
index 0000000..fa1414a
--- /dev/null
+++ b/skel.ChangeLog
@@ -0,0 +1,67 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*<PACKAGE_NAME>-<PACKAGE_VERSION>-<PACKAGE_RELEASE> (DD MMM YYYY)
+
+ DD MMM YYYY; YOUR_NAME <YOUR_EMAIL> changed_file1, changed_file2 :
+ Initial import. Ebuild submitted by submitter_name <submitter_email>.
+ Note that the "changed_file" listing is optional if you are simply bumping
+ the rev of the ebuild and are only making changes to the .ebuild file
+ itself. Also note that we now have a single unified paragraph rather than
+ having the first line separated from the rest by a newline. Everything
+ should be in one block like this. (note by drobbins, 16 Jul 2002)
+
+ DD MMM YYYY; YOUR_NAME <YOUR_EMAIL> changed_file1, changed_file2: this is
+ an earlier ChangeLog entry.
+
+-- Explanation of ChangeLog format:
+
+ ***************************************************************************
+ THIS IS IMPORTANT: The ChangeLog format is a *chronological* account of all
+ changes made to a set of ebuilds. That means that the most recent ChangeLog
+ entry *always* goes at the top of the file. More explanation below.
+ ***************************************************************************
+
+ ***************************************************************************
+ ANOTHER IMPORTANT NOTE: There are some ChangeLogs that don't follow this
+ format and organize all changes under the "correct" "*" entry. This is not
+ correct. However, rather than making a concerted effort to fix these
+ ChangeLogs, we should spend our energy defining a comprehensive and strict
+ XML-based ChangeLog format which we then migrate to. But for any entries to
+ any ChangeLog that *you* make, please make sure to always add entries to the
+ top of the file like a good boy/girl. Even do this if it's clear that you're
+ adding an entry to a b0rked ChangeLog.
+ ***************************************************************************
+
+ This changelog is targeted to users. This means that the comments should be
+ well explained and written in clean English.
+
+ Every new version or revision of the package should be marked by a '*'
+ separator line as above to indicate where in the chronology it was first
+ added to our CVS tree. Any changes since the last revision, really _any
+ changes at all_ have to be added to the top of the file, underneath the
+ initial copyright and cvs header comments, in exactly the same format as this
+ comment. If you are modifying older ebuilds, simply note them as changed
+ files and add your entry to the top of the ChangeLog. Resist the temptation
+ to "organize" your ChangeLog entries by placing them under the "correct" "*"
+ entries -- this isn't the purpose of the "*" entries.
+
+ This means that you start with header line that has the following format,
+ indented two spaces:
+
+ DD MMM YYYY; your_name <your_email> changed_file1, changed_file2: Your
+ explanation should follow. It should be indented and wrapped at a line width
+ of 80 characters. The changed_files can be omitted if they are obvious; for
+ example, if you are only modifying the .ebuild file and committing a new rev
+ of a package. Any details about what exactly changed in the code should be
+ added as a message when the changes are committed to cvs, not in this file.
+
+-- A word regarding credit:
+
+ Please add credit information ("ebuild submitted by ...", "patch submitted
+ by ...") to the ChangeLog. Do not add this information to the ebuilds
+ themselves.
+
+ And remember: Give credit where credit is due. We're all doing this for
+ free, so the best we can hope (and expect!) to receive is credit.
diff --git a/sys-apps/netselect/ChangeLog b/sys-apps/netselect/ChangeLog
new file mode 100644
index 0000000..2faee69
--- /dev/null
+++ b/sys-apps/netselect/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sys-apps/netselect
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org>
+ -netselect-1.2.5.ebuild, -netselect-1.2.6.ebuild, -netselect-1.2.7.ebuild,
+ netselect-1.3.0.ebuild:
+ Remove old versions, set RDEPEND.
+
diff --git a/sys-apps/netselect/Manifest b/sys-apps/netselect/Manifest
new file mode 100644
index 0000000..3ae8663
--- /dev/null
+++ b/sys-apps/netselect/Manifest
@@ -0,0 +1,6 @@
+DIST netselect-1.3.0.tar.bz2 4089 RMD160 fca8a0939c1283efc0abef60959130df7c73205e SHA1 a693067e7db92b95beb1e9981e50cd58ff3c7d11 SHA256 a7e81f9a14029f6e96a2249ab16476b37faa1e542dce089d558c846d3441b6e4
+DIST netselect-1.4.0.tar.bz2 4099 RMD160 8924fadbb78393771e1d42bcc5af67a763eb4c37 SHA1 28a85e298872ada039ac066fea898298f3264f98 SHA256 d75a76c83635474ba1f2e9c7c7eb5e8915f26de6ad55c20bc1febea4a39ee1f7
+EBUILD netselect-1.3.0.ebuild 680 RMD160 89edd504b7ec51040c4985dd741c2813515803b9 SHA1 bc983a6474c878b933d23f7a9cdd4d9d302714d9 SHA256 cb7ca6e3c0af258d6316dd155d58d9f60f5352df5875b48cf8ae8eff3fa86e66
+EBUILD netselect-1.4.0.ebuild 664 RMD160 51e7c16c5cdcdf361a85e0cad9a6db2db08037f2 SHA1 3acd68f409acb4218b56bb28a4b40683686fa918 SHA256 e5d764bb51cfc1b0fe516a04070f372798dbf916f0d05059e17d1d03b6dc16d3
+MISC ChangeLog 312 RMD160 4cdd7dbbf8892a21e9c99b9c98a465f9223dce16 SHA1 a38f128ab4178622720c78b038515dd2e8ad6570 SHA256 f88c71f09beda0c0f400d52cf93e1c94f7f5d44a8c4664234e508512f7e7c118
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/sys-apps/netselect/metadata.xml b/sys-apps/netselect/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/sys-apps/netselect/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/sys-apps/netselect/netselect-1.3.0.ebuild b/sys-apps/netselect/netselect-1.3.0.ebuild
new file mode 100644
index 0000000..5e1651b
--- /dev/null
+++ b/sys-apps/netselect/netselect-1.3.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit bash-completion
+
+DESCRIPTION="Network selection utility"
+HOMEPAGE="http://dev.gentooexperimental.org/~nelchael/"
+SRC_URI="http://dev.gentooexperimental.org/~nelchael/distfiles/${P}.tar.bz2"
+
+RESTRICT="mirror"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ dodir /etc/netselect
+ dodir /sbin
+ keepdir /etc/netselect/postset.d
+
+ cd "${S}"
+ cp netselect "${D}/sbin/" || die "cp failed"
+ cp netselect.conf "${D}/etc/netselect" || die "cp failed"
+
+ dobashcompletion bc/netselect
+}
diff --git a/sys-apps/netselect/netselect-1.4.0.ebuild b/sys-apps/netselect/netselect-1.4.0.ebuild
new file mode 100644
index 0000000..c0aa33b
--- /dev/null
+++ b/sys-apps/netselect/netselect-1.4.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit bash-completion
+
+DESCRIPTION="Network selection utility"
+HOMEPAGE="http://bitbucket.org/nelchael/netselect/"
+SRC_URI="http://dev.gentoo.org/~nelchael/distfiles/${P}.tar.bz2"
+
+RESTRICT="mirror"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ dodir /etc/netselect
+ dodir /sbin
+ keepdir /etc/netselect/postset.d
+
+ cd "${S}"
+ cp netselect "${D}/sbin/" || die "cp failed"
+ cp netselect.conf "${D}/etc/netselect" || die "cp failed"
+
+ dobashcompletion bc/netselect
+}
diff --git a/www-apache/mod_npy/ChangeLog b/www-apache/mod_npy/ChangeLog
new file mode 100644
index 0000000..5666acb
--- /dev/null
+++ b/www-apache/mod_npy/ChangeLog
@@ -0,0 +1,7 @@
+# ChangeLog for www-apache/mod_npy
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 12 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> -mod_npy-0.3.2.ebuild:
+ Remove old versions.
+
diff --git a/www-apache/mod_npy/Manifest b/www-apache/mod_npy/Manifest
new file mode 100644
index 0000000..8a11627
--- /dev/null
+++ b/www-apache/mod_npy/Manifest
@@ -0,0 +1,4 @@
+DIST mod_npy-0.3.3.tar.bz2 46430 RMD160 f3bd71c0cb8fa9c53100185cc3556ee0f169170f SHA1 af556154f72848e3688e4024d9f615af04f54bf1 SHA256 914cc4a5ef72b8ddb0df735ed37bcabfc529c37c63e8e8bb690a74bb1fdd8609
+EBUILD mod_npy-0.3.3.ebuild 779 RMD160 5bb08192eb653f0a93868fe385cdc16c30cb13c0 SHA1 60035833bc39cb63b8d471c0ae565592916e403c SHA256 e3cdc07bb9622416813859a9440f9bb4d17eb8d3d893050199f4fcca15566289
+MISC ChangeLog 219 RMD160 fd788dd1b5009cfeb60ac8a0e7000402c9d67006 SHA1 e5c54a20ad3c79db8a7a5a071e42b3c94f13e413 SHA256 c9a05e162714004b585230a0f24592670830f182c334220332701b7d3458553a
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/www-apache/mod_npy/metadata.xml b/www-apache/mod_npy/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/www-apache/mod_npy/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_npy/mod_npy-0.3.3.ebuild b/www-apache/mod_npy/mod_npy-0.3.3.ebuild
new file mode 100644
index 0000000..7c83865
--- /dev/null
+++ b/www-apache/mod_npy/mod_npy-0.3.3.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit apache-module
+
+DESCRIPTION="Alternative way of using Python for dynamic web content."
+HOMEPAGE="http://mod-npy.sourceforge.net/"
+LICENSE="ZLIB"
+SRC_URI="mirror://sourceforge/mod-npy/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="profile"
+SLOT="0"
+
+# See apache-module.eclass for more information.
+# APACHE2_MOD_CONF=""
+# APACHE2_MOD_DEFINE=""
+
+need_apache2
+
+src_compile() {
+
+ local myconf=
+ use profile && myconf="${myconf} --enable-profile"
+
+ econf ${myconf} || die "econf failed"
+ emake || die "emake failed"
+
+}
+
+src_install() {
+
+ apache2_src_install
+
+ insinto ${APACHE2_MODULES_CONFDIR}
+ doins "${S}/conf/99_mod_npy.conf"
+
+ dodoc "${S}/ChangeLog"
+
+}
diff --git a/x11-misc/wink/ChangeLog b/x11-misc/wink/ChangeLog
new file mode 100644
index 0000000..24f77db
--- /dev/null
+++ b/x11-misc/wink/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for x11-misc/wink
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*wink-1.5.1060 (03 Feb 2010)
+
+ 03 Feb 2010; Krzysiek Pawlik <nelchael@gentoo.org> +wink-1.5.1060.ebuild,
+ +metadata.xml:
+ Initial version.
+
diff --git a/x11-misc/wink/Manifest b/x11-misc/wink/Manifest
new file mode 100644
index 0000000..dbeb9bd
--- /dev/null
+++ b/x11-misc/wink/Manifest
@@ -0,0 +1,4 @@
+DIST wink15.tar.gz 2973055 RMD160 70d9c4e803b33c04c926c1fb76df813dd2eef715 SHA1 020123c26439226e3e0fc45c228ba3187bd9bb55 SHA256 589ecb099bb34c937ffb4624caf6c79b4c8a8f5860afcb9764c6745fa15737ea
+EBUILD wink-1.5.1060.ebuild 1200 RMD160 2551e852cb70284c9433de467907afbb09186f83 SHA1 442e72f9f8f75fe3a35b2f69bd3429d2eee8408c SHA256 8bed0698162396bf0219adc9ed72b105a47c6862213e1318d82f2b085b0b47c6
+MISC ChangeLog 257 RMD160 58a494f7a4774327e424b6194b69a9738e7fba72 SHA1 c35db93b499313408df177a04f41dc5df576dddb SHA256 77d04e27779992e0a56d4a783d009cf09de75631ee07d46a2b63952fda318dd6
+MISC metadata.xml 209 RMD160 aad874f8991659f1214c1215c75597afc907d471 SHA1 9475be91874cb1e048ab26d4ea5ada17adcbc03f SHA256 ea9eb35c2edee74ca39c4e351322e86c12f3c37ce8a2bf1daa17ca5d07a578b7
diff --git a/x11-misc/wink/metadata.xml b/x11-misc/wink/metadata.xml
new file mode 100644
index 0000000..f9aa82e
--- /dev/null
+++ b/x11-misc/wink/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>nelchael@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/x11-misc/wink/wink-1.5.1060.ebuild b/x11-misc/wink/wink-1.5.1060.ebuild
new file mode 100644
index 0000000..593ee4b
--- /dev/null
+++ b/x11-misc/wink/wink-1.5.1060.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="Wink is a tutorial and presentation creation software."
+HOMEPAGE="http://www.debugmode.com/wink/"
+SRC_URI="http://yet.another.linux-nerd.com/wink/download/wink15.tar.gz"
+
+LICENSE="Wink"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="amd64? ( app-emulation/emul-linux-x86-gtklibs
+ app-emulation/emul-linux-x86-compat )
+ x86? ( x11-libs/gtk+:2
+ virtual/libstdc++:3.3 )"
+DEPEND="${RDEPEND}
+ app-arch/unzip"
+
+src_unpack() {
+ mkdir "${S}" || die
+ cd "${S}"
+ unpack ${A}
+ unpack ./installdata.tar.gz
+ rm -f ./installdata.tar.gz installer.sh
+
+ unzip -q Resources/winkcust.xrs 'winkcust.xrs$winkicon.png' || die
+ mv 'winkcust.xrs$winkicon.png' 'wink-icon.png' || die
+}
+
+src_prepare() {
+ sed -i -e 's,expat.so.0,expat.so.1,' wink
+}
+
+src_install() {
+ dodoc *.txt Docs/*.pdf
+ rm -rf *.txt Docs
+
+ doicon 'wink-icon.png'
+ rm -rf 'wink-icon.png'
+
+ dodir "/opt/wink"
+ dodir "/usr/bin"
+ cp -Ra * "${D}/opt/wink/" || die
+
+ make_wrapper "wink" "/opt/wink/wink"
+ make_desktop_entry "/usr/bin/wink" "Wink" "wink-icon.png" "AudioVideo"
+}