diff options
Diffstat (limited to 'dev-libs/libxml2/libxml2-9999.ebuild')
-rw-r--r-- | dev-libs/libxml2/libxml2-9999.ebuild | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/dev-libs/libxml2/libxml2-9999.ebuild b/dev-libs/libxml2/libxml2-9999.ebuild index 18743bea1507..3ad0604b6f1e 100644 --- a/dev-libs/libxml2/libxml2-9999.ebuild +++ b/dev-libs/libxml2/libxml2-9999.ebuild @@ -7,8 +7,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} ) PYTHON_REQ_USE="xml" -EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/libxml2" -inherit autotools flag-o-matic python-r1 multilib-minimal git-r3 +inherit autotools flag-o-matic python-r1 multilib-minimal XSTS_HOME="http://www.w3.org/XML/2004/xml-schema-test-suite" XSTS_NAME_1="xmlschema2002-01-16" @@ -19,6 +18,14 @@ XMLCONF_TARBALL="xmlts20130923.tar.gz" DESCRIPTION="XML C parser and toolkit" HOMEPAGE="http://www.xmlsoft.org/ https://gitlab.gnome.org/GNOME/libxml2" +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://gitlab.gnome.org/GNOME/libxml2" + inherit git-r3 +else + inherit gnome.org + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi + SRC_URI+=" test? ( ${XSTS_HOME}/${XSTS_NAME_1}/${XSTS_TARBALL_1} @@ -53,7 +60,15 @@ MULTILIB_CHOST_TOOLS=( DOCS=( NEWS README.md TODO TODO_SCHEMAS python/TODO ) src_unpack() { - git-r3_src_unpack + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + else + local tarname=${P/_rc/-rc}.tar.xz + + # ${A} isn't used to avoid unpacking of test tarballs into ${WORKDIR}, + # as they are needed as tarballs in ${S}/xstc instead and not unpacked + unpack ${tarname} ${PN}-${PATCHSET_VERSION}.tar.bz2 + fi cd "${S}" || die |