diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-17 17:50:39 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-04-17 17:56:39 +0200 |
commit | 73733bd026f26e84f2e57fe38767e392e945118c (patch) | |
tree | cb4fe9b1c80ad271f0517dd51852b167cb7584d2 /media-libs/libepoxy | |
parent | media-libs/libsndfile: python3_8 support (diff) | |
download | gentoo-73733bd026f26e84f2e57fe38767e392e945118c.tar.gz gentoo-73733bd026f26e84f2e57fe38767e392e945118c.tar.bz2 gentoo-73733bd026f26e84f2e57fe38767e392e945118c.zip |
media-libs/libepoxy: python3_8 support, minor cleanup
Tests passed.
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'media-libs/libepoxy')
-rw-r--r-- | media-libs/libepoxy/libepoxy-1.5.4.ebuild | 35 | ||||
-rw-r--r-- | media-libs/libepoxy/libepoxy-9999.ebuild | 35 |
2 files changed, 28 insertions, 42 deletions
diff --git a/media-libs/libepoxy/libepoxy-1.5.4.ebuild b/media-libs/libepoxy/libepoxy-1.5.4.ebuild index 02f1bc297cf5..889f03836415 100644 --- a/media-libs/libepoxy/libepoxy-1.5.4.ebuild +++ b/media-libs/libepoxy/libepoxy-1.5.4.ebuild @@ -3,41 +3,34 @@ EAPI=7 -EGIT_REPO_URI="https://github.com/anholt/${PN}.git" - -if [[ ${PV} = 9999* ]]; then - GIT_ECLASS="git-r3" -fi - -PYTHON_COMPAT=( python{3_6,3_7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) PYTHON_REQ_USE='xml(+)' -inherit ${GIT_ECLASS} meson multilib-minimal python-any-r1 +inherit meson multilib-minimal python-any-r1 -DESCRIPTION="Epoxy is a library for handling OpenGL function pointer management for you" -HOMEPAGE="https://github.com/anholt/libepoxy" if [[ ${PV} = 9999* ]]; then - SRC_URI="" + EGIT_REPO_URI="https://github.com/anholt/${PN}.git" + inherit git-r3 else - KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" SRC_URI="https://github.com/anholt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86" fi +DESCRIPTION="Library for handling OpenGL function pointer management" +HOMEPAGE="https://github.com/anholt/libepoxy" + LICENSE="MIT" SLOT="0" -RESTRICT="!test? ( test )" IUSE="+egl test +X" -RDEPEND="egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )" -DEPEND="X? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) - ${RDEPEND}" +RESTRICT="!test? ( test )" + +RDEPEND=" + egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )" BDEPEND="${PYTHON_DEPS} virtual/pkgconfig" -src_unpack() { - default - [[ $PV = 9999* ]] && git-r3_src_unpack -} - multilib_src_configure() { local emesonargs=( -Degl=$(usex egl) diff --git a/media-libs/libepoxy/libepoxy-9999.ebuild b/media-libs/libepoxy/libepoxy-9999.ebuild index 7d68a7cdbcf2..17b8095b0f30 100644 --- a/media-libs/libepoxy/libepoxy-9999.ebuild +++ b/media-libs/libepoxy/libepoxy-9999.ebuild @@ -3,41 +3,34 @@ EAPI=7 -EGIT_REPO_URI="https://github.com/anholt/${PN}.git" - -if [[ ${PV} = 9999* ]]; then - GIT_ECLASS="git-r3" -fi - -PYTHON_COMPAT=( python{3_6,3_7} ) +PYTHON_COMPAT=( python3_{6,7,8} ) PYTHON_REQ_USE='xml(+)' -inherit ${GIT_ECLASS} meson multilib-minimal python-any-r1 +inherit meson multilib-minimal python-any-r1 -DESCRIPTION="Epoxy is a library for handling OpenGL function pointer management for you" -HOMEPAGE="https://github.com/anholt/libepoxy" if [[ ${PV} = 9999* ]]; then - SRC_URI="" + EGIT_REPO_URI="https://github.com/anholt/${PN}.git" + inherit git-r3 else - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" SRC_URI="https://github.com/anholt/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" fi +DESCRIPTION="Library for handling OpenGL function pointer management" +HOMEPAGE="https://github.com/anholt/libepoxy" + LICENSE="MIT" SLOT="0" -RESTRICT="!test? ( test )" IUSE="+egl test +X" -RDEPEND="egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )" -DEPEND="X? ( x11-libs/libX11[${MULTILIB_USEDEP}] ) - ${RDEPEND}" +RESTRICT="!test? ( test )" + +RDEPEND=" + egl? ( media-libs/mesa[egl,${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + X? ( x11-libs/libX11[${MULTILIB_USEDEP}] )" BDEPEND="${PYTHON_DEPS} virtual/pkgconfig" -src_unpack() { - default - [[ $PV = 9999* ]] && git-r3_src_unpack -} - multilib_src_configure() { local emesonargs=( -Degl=$(usex egl) |