summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Karbowski <slashbeast@gentoo.org>2019-02-23 21:23:50 +0100
committerPiotr Karbowski <slashbeast@gentoo.org>2019-02-23 22:03:08 +0100
commitea3ee8ff16f4c3f28cb87d71512bcebddbc59719 (patch)
tree125c43fbd4630fae92506ba743c6e45f685aed3d /x11-misc
parentapp-editors/emacs-vcs: New pretest 26.1.92. (diff)
downloadgentoo-ea3ee8ff16f4c3f28cb87d71512bcebddbc59719.tar.gz
gentoo-ea3ee8ff16f4c3f28cb87d71512bcebddbc59719.tar.bz2
gentoo-ea3ee8ff16f4c3f28cb87d71512bcebddbc59719.zip
x11-misc/sunflower: add myself as maintainer, bump 0.3.61.
Added myself to maintainers list as there wasn't any, bumped ebuild to 0.3-61/0.3.61, updated it to EAPI=7, switched to github release tarballs. Closes: https://bugs.gentoo.org/576882 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>
Diffstat (limited to 'x11-misc')
-rw-r--r--x11-misc/sunflower/Manifest1
-rw-r--r--x11-misc/sunflower/metadata.xml5
-rw-r--r--x11-misc/sunflower/sunflower-0.3.61.ebuild90
3 files changed, 95 insertions, 1 deletions
diff --git a/x11-misc/sunflower/Manifest b/x11-misc/sunflower/Manifest
index 21a915b9965..5c5c22b73ac 100644
--- a/x11-misc/sunflower/Manifest
+++ b/x11-misc/sunflower/Manifest
@@ -1 +1,2 @@
DIST sunflower-0.2-59.tgz 790126 BLAKE2B 32df1ced73ba0bf5e814e52010eefbbd10657bdbb602dd3a48dc08b865195c3d1efa631bfe2d421f0a12a2f01521a2c6248fe5b9ca8fcc268423f0c9aa3d252d SHA512 e97076eb1c57d52b8fd95501259acaaa9a429f9daacc30ef587cce2f3419433f5aa4554e0e86beeceda208b4be425b98c64c6ced04e36e86b2b4f803176c37f9
+DIST sunflower-0.3.61.tar.gz 975053 BLAKE2B 5845ce0e81cf98b7488c9c34b8a3b6702e01abe9976bd4186691ce3804164d707d3ca999896e3f8d60e5253891d94f39e2fabdb50170afa8ec0f937df141db89 SHA512 f55c2fb15889f903375776f989498827dcab287e87d4015c50f12780dd2f0271e1e127533a10ca94f44ebd44727018917cf92e828bbe82b7653d8ed559ee1cc3
diff --git a/x11-misc/sunflower/metadata.xml b/x11-misc/sunflower/metadata.xml
index 1ba4c2fe874..a92806229f3 100644
--- a/x11-misc/sunflower/metadata.xml
+++ b/x11-misc/sunflower/metadata.xml
@@ -1,7 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
-<!-- maintainer-needed -->
+ <maintainer type="person">
+ <email>slashbeast@gentoo.org</email>
+ <name>Piotr Karbowski</name>
+ </maintainer>
<upstream>
<remote-id type="github">MeanEYE/Sunflower</remote-id>
</upstream>
diff --git a/x11-misc/sunflower/sunflower-0.3.61.ebuild b/x11-misc/sunflower/sunflower-0.3.61.ebuild
new file mode 100644
index 00000000000..70998acf88e
--- /dev/null
+++ b/x11-misc/sunflower/sunflower-0.3.61.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python2_7 )
+inherit python-r1 xdg-utils desktop
+
+MY_PN="${PN^}"
+MY_PV=$(ver_rs 2 '-')
+
+DESCRIPTION="Small and highly customizable twin-panel file manager with plugin-support"
+HOMEPAGE="https://github.com/MeanEYE/Sunflower
+ http://sunflower-fm.org/"
+SRC_URI="https://github.com/MeanEYE/${MY_PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ >=dev-python/pygtk-2.15.0:2[${PYTHON_USEDEP}]
+ >=dev-python/notify-python-0.1[${PYTHON_USEDEP}]
+ gnome-base/librsvg:2"
+
+S=${WORKDIR}/${MY_PN}-$MY_PV
+
+src_prepare() {
+ default
+ 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} > "${WORKDIR}"/${PN} || die
+ python_doscript "${WORKDIR}"/${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_postinst() {
+ xdg_desktop_database_update
+ xdg_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() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+}