diff options
Diffstat (limited to 'dev-libs/appstream')
-rw-r--r-- | dev-libs/appstream/Manifest | 6 | ||||
-rw-r--r-- | dev-libs/appstream/appstream-0.10.6-r1.ebuild | 71 | ||||
-rw-r--r-- | dev-libs/appstream/appstream-0.11.5.ebuild | 62 | ||||
-rw-r--r-- | dev-libs/appstream/files/appstream-0.11.5-fix-meson-po.patch | 14 | ||||
-rw-r--r-- | dev-libs/appstream/metadata.xml | 14 |
5 files changed, 167 insertions, 0 deletions
diff --git a/dev-libs/appstream/Manifest b/dev-libs/appstream/Manifest new file mode 100644 index 000000000000..6a5411c3c54d --- /dev/null +++ b/dev-libs/appstream/Manifest @@ -0,0 +1,6 @@ +AUX appstream-0.11.5-fix-meson-po.patch 501 BLAKE2B 40d5f00cd7e883ddbd580ba7acfef6c956003a8a50f618b1f7e4810338af1ec41d6595828987132d175c2c07721ce60ba368033919a49ede9c659089fefd50eb SHA512 d4b4fb770ad84a6bf365e998eb749939a3aa4553aad9730f6d99d5072de37eb6594ad2ac00ee17706621483afe58f44c9f9f90aa9f666d0e2f6379f40ad78e71 +DIST appstream-0.10.6.tar.gz 1821879 BLAKE2B 49e0476ef41c37d2e9bb12a7c046fcbb2cd8fcb1f521321dce4cda15e504a966cf59a1cbf56fc7359a82f677c54906ba041ad37eeb7f639ad69691e8d2ccd24c SHA512 9f8b4ddc39d580c62b166df0d9a2c5e4caac1b433d25a4e9118b7c73ceea5c7b1ff78f02d682a68cdfeb8da29e806a4838cfc11637fca2982f436af333605256 +DIST appstream-0.11.5.tar.gz 1856204 BLAKE2B 9f1e423e71e40b569cae0fb259bf5a0203a0abcba64f877c951c941f1dfdbc8005509ca46040586b8937cc168ad9315978dd2a3763592de1686c9648eac6c928 SHA512 308f65df2d03f09a5fdfe1d5b61ed37ddfd73a6f7cd861f685463c45ba17a2a937ba34216b4d5f533cb5f9f56c65ff9b261e03d07aaab74bec3f89e5bfb57d7b +EBUILD appstream-0.10.6-r1.ebuild 1474 BLAKE2B 7b70518da8b410ae9e9843d8238a4408ea571a5c1e7ff8d037d33636e4ea6d75758ba9bf33b03a6d084880caa8b1a02d0ebcf392fb6f81c5430bc83f0546e498 SHA512 53f95d11310cb6926059ece55a46240883a7e6f7dd6322b319cd8697ac306f4bd106e38aa05f04ebee33c481ea4bb82ab3d94ae664f925ee58df4fc63066e80e +EBUILD appstream-0.11.5.ebuild 1376 BLAKE2B a4505ffee8274eeeff1d78a79ba1e2bf47588dda71a2dfb5993985ab4d689380fe94d473b5cb4f43a018228e0a59f1ae72d294190e4e89e9df52512ac121c449 SHA512 de2b3c1a9ea20715572b94dcd78b23a0c7e9a41545d9c1898a33d50a263c5b82b7b2b99a9d0cc2e61e02598b6b8885df48d9ab5f4c88c58e0f9548fea60ea62a +MISC metadata.xml 399 BLAKE2B 433fcfbb840f3efc4130de1a4b9a18ce3b1762363bfa67d994a063098da0397b6776a6154250ad5a35a4960241234f2ba3dc2464b760cf19cbb680590d559049 SHA512 1f81f3603fc34a3dbeb570fe83ed2ff97e4ea2391cda7d7ceef017624a8498052cda4a21dee1f6b8eb41407998dfcecd765bde556837d00b13caaa41989f934f diff --git a/dev-libs/appstream/appstream-0.10.6-r1.ebuild b/dev-libs/appstream/appstream-0.10.6-r1.ebuild new file mode 100644 index 000000000000..5d7a92367ffe --- /dev/null +++ b/dev-libs/appstream/appstream-0.10.6-r1.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils xdg-utils + +if [[ ${PV} = 9999 ]]; then + inherit git-r3 + 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 ~arm ~arm64 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/" + +LICENSE="LGPL-2.1+ GPL-2+" +# check APPSTREAM_LIB_API_LEVEL +SLOT="0/4" +IUSE="apt doc qt5 test" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gobject-introspection + dev-libs/libxml2:2 + dev-libs/libyaml + dev-libs/snowball-stemmer + qt5? ( dev-qt/qtcore:5 ) +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.5 + dev-util/itstool + sys-devel/gettext + test? ( + qt5? ( dev-qt/qttest:5 ) + ) +" + +src_prepare() { + cmake-utils_src_prepare + + if ! use test; then + pushd qt > /dev/null || die + cmake_comment_add_subdirectory tests + popd > /dev/null || die + fi +} + +src_configure() { + xdg_environment_reset + + local mycmakeargs=( + -DSTEMMING=ON + -DL18N=ON + -DVAPI=OFF + -DMAINTAINER=OFF + -DSANITIZERS=OFF + -DDOCUMENTATION=OFF + -DAPT_SUPPORT=$(usex apt) + -DINSTALL_PREBUILT_DOCS=$(usex doc) + -DQT=$(usex qt5) + ) + + cmake-utils_src_configure +} diff --git a/dev-libs/appstream/appstream-0.11.5.ebuild b/dev-libs/appstream/appstream-0.11.5.ebuild new file mode 100644 index 000000000000..bf4e52ace68b --- /dev/null +++ b/dev-libs/appstream/appstream-0.11.5.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit meson xdg-utils + +if [[ ${PV} = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ximion/${PN}" +else + inherit eapi7-ver + MY_PV="$(ver_rs 0- '_')" + MY_P="APPSTREAM_${MY_PV}" + SRC_URI="https://github.com/ximion/${PN}/archive/${MY_P}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~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/" + +LICENSE="LGPL-2.1+ GPL-2+" +# check as_api_level +SLOT="0/4" +IUSE="apt doc qt5 test" + +RDEPEND=" + dev-libs/glib:2 + dev-libs/gobject-introspection + dev-libs/libxml2:2 + dev-libs/libyaml + dev-libs/snowball-stemmer + qt5? ( dev-qt/qtcore:5 ) +" +DEPEND="${RDEPEND} + app-text/docbook-xml-dtd:4.5 + dev-util/itstool + >=dev-util/meson-0.42.0 + sys-devel/gettext + test? ( + qt5? ( dev-qt/qttest:5 ) + ) +" + +PATCHES=( "${FILESDIR}/${P}-fix-meson-po.patch" ) + +src_configure() { + xdg_environment_reset + + local emesonargs=( + -Denable-docs=false + -Denable-maintainer=false + -Denable-stemming=true + -Denable-vapi=false + -Denable-apt-support=$(usex apt true false) + -Denable-apidocs=$(usex doc true false) + -Denable-qt=$(usex qt5 true false) + ) + + meson_src_configure +} diff --git a/dev-libs/appstream/files/appstream-0.11.5-fix-meson-po.patch b/dev-libs/appstream/files/appstream-0.11.5-fix-meson-po.patch new file mode 100644 index 000000000000..2a37662e8f34 --- /dev/null +++ b/dev-libs/appstream/files/appstream-0.11.5-fix-meson-po.patch @@ -0,0 +1,14 @@ +Gentoo-bug: https://bugs.gentoo.org/640916 +Thanks-to: David Haller <gentoo@dhaller.de> + +--- a/po/meson.build 2017-09-04 18:09:52.000000000 +0200 ++++ b/po/meson.build 2018-05-15 12:24:42.000000000 +0200 +@@ -21,7 +21,7 @@ + 'find ' + meson.current_source_dir() + + ' -type f' + + ' -iname "*.po"' + +- ' -printf \'%f\\n\'' + ++ ' -printf \'%f\n\'' + + ' | grep -oP \'.*(?=[.])\' | sort' + + ' > ' + join_paths(meson.current_source_dir(), 'LINGUAS') + ] diff --git a/dev-libs/appstream/metadata.xml b/dev-libs/appstream/metadata.xml new file mode 100644 index 000000000000..f33a7f5bc7e6 --- /dev/null +++ b/dev-libs/appstream/metadata.xml @@ -0,0 +1,14 @@ +<?xml version='1.0' encoding='UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>kde@gentoo.org</email> + <name>Gentoo KDE Project</name> + </maintainer> + <use> + <flag name="apt">Enables Debians APT support</flag> + </use> + <upstream> + <remote-id type="github">ximion/appstream</remote-id> + </upstream> +</pkgmetadata> |