commit:     3e86f40a5693c6e2afb7affd5fda0132ef4041b9
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  5 17:58:02 2017 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Thu Jan  5 17:58:02 2017 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=3e86f40a

dev-libs/appstream: Version 0.10.5

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 .../{appstream-9999.ebuild => appstream-0.10.5.ebuild}       | 12 +++++++++++-
 dev-libs/appstream/appstream-9999.ebuild                     | 12 +++++++++++-
 2 files changed, 22 insertions(+), 2 deletions(-)

diff --git a/dev-libs/appstream/appstream-9999.ebuild 
b/dev-libs/appstream/appstream-0.10.5.ebuild
similarity index 72%
copy from dev-libs/appstream/appstream-9999.ebuild
copy to dev-libs/appstream/appstream-0.10.5.ebuild
index 46ec519..55829e7 100644
--- a/dev-libs/appstream/appstream-9999.ebuild
+++ b/dev-libs/appstream/appstream-0.10.5.ebuild
@@ -8,9 +8,19 @@ KDE_AUTODEPS="false"
 KDE_TEST="true"
 inherit kde5
 
+if [[ ${KDE_BUILD_TYPE} = live ]]; then
+       EGIT_REPO_URI="https://github.com/ximion/${PN}";
+else
+       inherit versionator
+       MY_PV="$(replace_all_version_separators '_')"
+       MY_P="APPSTREAM_${MY_PV}"
+       SRC_URI="https://github.com/ximion/${PN}/archive/${MY_P}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+       S="${WORKDIR}/${PN}-${MY_P}"
+fi
+
 DESCRIPTION="Cross-distro effort for providing metadata for software in the 
Linux ecosystem"
 HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/";
-EGIT_REPO_URI="https://github.com/ximion/${PN}";
 
 LICENSE="LGPL-2.1+ GPL-2+"
 # check APPSTREAM_LIB_API_LEVEL

diff --git a/dev-libs/appstream/appstream-9999.ebuild 
b/dev-libs/appstream/appstream-9999.ebuild
index 46ec519..55829e7 100644
--- a/dev-libs/appstream/appstream-9999.ebuild
+++ b/dev-libs/appstream/appstream-9999.ebuild
@@ -8,9 +8,19 @@ KDE_AUTODEPS="false"
 KDE_TEST="true"
 inherit kde5
 
+if [[ ${KDE_BUILD_TYPE} = live ]]; then
+       EGIT_REPO_URI="https://github.com/ximion/${PN}";
+else
+       inherit versionator
+       MY_PV="$(replace_all_version_separators '_')"
+       MY_P="APPSTREAM_${MY_PV}"
+       SRC_URI="https://github.com/ximion/${PN}/archive/${MY_P}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~x86"
+       S="${WORKDIR}/${PN}-${MY_P}"
+fi
+
 DESCRIPTION="Cross-distro effort for providing metadata for software in the 
Linux ecosystem"
 HOMEPAGE="https://www.freedesktop.org/wiki/Distributions/AppStream/";
-EGIT_REPO_URI="https://github.com/ximion/${PN}";
 
 LICENSE="LGPL-2.1+ GPL-2+"
 # check APPSTREAM_LIB_API_LEVEL

Reply via email to