diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-30 00:13:14 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-30 00:13:14 +0000 |
commit | 9e76e73f08292869f2560f0745d879f35d86d4de (patch) | |
tree | c7bb4f984f0a598242348891cc63db89f3193509 /x11-misc | |
parent | version bump (diff) | |
download | gentoo-2-9e76e73f08292869f2560f0745d879f35d86d4de.tar.gz gentoo-2-9e76e73f08292869f2560f0745d879f35d86d4de.tar.bz2 gentoo-2-9e76e73f08292869f2560f0745d879f35d86d4de.zip |
version bump, improve LINGUAS handling
(Portage version: 2.2.0_alpha170/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/sunflower/ChangeLog | 8 | ||||
-rw-r--r-- | x11-misc/sunflower/sunflower-0.1_alpha54.ebuild | 92 |
2 files changed, 99 insertions, 1 deletions
diff --git a/x11-misc/sunflower/ChangeLog b/x11-misc/sunflower/ChangeLog index 5137bbd1885b..492b6578079b 100644 --- a/x11-misc/sunflower/ChangeLog +++ b/x11-misc/sunflower/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-misc/sunflower # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/ChangeLog,v 1.4 2013/03/17 16:14:00 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/ChangeLog,v 1.5 2013/03/30 00:13:14 hasufell Exp $ + +*sunflower-0.1_alpha54 (30 Mar 2013) + + 30 Mar 2013; Julian Ospald <hasufell@gentoo.org> + +sunflower-0.1_alpha54.ebuild: + version bump, improve LINGUAS handling 17 Mar 2013; Markos Chandras <hwoarang@gentoo.org> metadata.xml: Add proxy-maintainers to metadata.xml diff --git a/x11-misc/sunflower/sunflower-0.1_alpha54.ebuild b/x11-misc/sunflower/sunflower-0.1_alpha54.ebuild new file mode 100644 index 000000000000..65be29279994 --- /dev/null +++ b/x11-misc/sunflower/sunflower-0.1_alpha54.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/sunflower/sunflower-0.1_alpha54.ebuild,v 1.1 2013/03/30 00:13:14 hasufell Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python{2_6,2_7} ) +inherit eutils fdo-mime gnome2-utils python-r1 + +MY_PV="${PV%_alpha*}a-${PV#*_alpha}" +MY_PN="Sunflower" +DESCRIPTION="Small and highly customizable twin-panel file manager with plugin-support" +HOMEPAGE="http://code.google.com/p/sunflower-fm" +SRC_URI="http://sunflower-fm.googlecode.com/files/${MY_PN}-${MY_PV}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + >=dev-python/pygtk-2.15.0 + >=dev-python/notify-python-0.1 + virtual/python-argparse[${PYTHON_USEDEP}]" + +S=${WORKDIR}/${MY_PN} + +src_prepare() { + find "${S}" -name "*.py[co]" -delete || die + find "${S}"/translations -name "*.po" -delete || die + rm "${S}"/translations/${PN}.pot || die + + sed -i \ + -e '/^application_file/s/os.path.dirname(sys.argv\[0\])/os.getcwd()/' \ + ${MY_PN}.py || die +} + +src_install() { + touch __init__.py || die + installme() { + # install modules + python_moduleinto ${PN} + python_domodule images application ${MY_PN}.py \ + AUTHORS CHANGES COPYING DEPENDS TODO __init__.py + + # generate and install startup scripts + sed \ + -e "s#@SITEDIR@#$(python_get_sitedir)/${PN}#" \ + "${FILESDIR}"/${PN} > "${T}"/${PN} || die + python_doscript "${T}"/${PN} + } + + # install for all enabled implementations + python_foreach_impl installme + + insinto /usr/share/locale + # correct gettext behavior + if [[ -n "${LINGUAS+x}" ]] ; then + for i in $(cd "${S}"/translations ; echo *) ; do + if has ${i} ${LINGUAS} ; then + doins -r "${S}"/translations/${i} + fi + done + else + doins -r "${S}"/translations/* + fi + + newicon -s 64 images/${PN}_64.png ${PN}.png + doicon -s scalable images/${PN}.svg + newmenu ${MY_PN}.desktop ${PN}.desktop +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update + + # TODO: better description + elog "optional dependencies:" + elog " dev-python/libgnome-python" + elog " media-libs/mutagen" + elog " x11-libs/vte:0[python] (terminal support)" +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |