Skip to content

Commit

Permalink
media-video/gaupol: add Python 3.5 support, tests, postrm
Browse files Browse the repository at this point in the history
Minor fixes to metadata, add upstream

Package-Manager: portage-2.2.27
  • Loading branch information
sbraz authored and Ian Delaney committed Feb 1, 2016
1 parent cece3f8 commit 7f25a6f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

PYTHON_COMPAT=( python{3_3,3_4} )
PYTHON_COMPAT=( python{3_3,3_4,3_5} )

inherit distutils-r1 fdo-mime gnome2-utils versionator
inherit distutils-r1 fdo-mime gnome2-utils versionator virtualx

MAJOR_MINOR_VERSION="$(get_version_component_range 1-2)"

Expand All @@ -17,7 +17,7 @@ SRC_URI="http://download.gna.org/${PN}/${MAJOR_MINOR_VERSION}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="spell"
IUSE="spell test"

RDEPEND="app-text/iso-codes
dev-python/chardet[${PYTHON_USEDEP}]
Expand All @@ -29,7 +29,12 @@ RDEPEND="app-text/iso-codes
)"
DEPEND="${RDEPEND}
dev-util/intltool
sys-devel/gettext"
sys-devel/gettext
test? (
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-runner[${PYTHON_USEDEP}]
)
"

DOCS=( AUTHORS.md NEWS.md TODO.md README.md README.aeidon.md )

Expand All @@ -48,3 +53,13 @@ pkg_postinst() {
elog "Aspell/Pspell, Ispell, MySpell, Uspell, Hspell or AppleSpell."
fi
}

python_test() {
virtx py.test
}

pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
5 changes: 4 additions & 1 deletion media-video/gaupol/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
<email>[email protected]</email>
<name>Gentoo Video project</name>
</maintainer>
<maintainer type="project">
<maintainer type="project">
<email>[email protected]</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="github">otsaloma/gaupol</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 7f25a6f

Please sign in to comment.