mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
dev-libs/libayatana-appindicator-glib: new package, add 2.0.1, 9999
Signed-off-by: Nguyen Dinh Dang Duong <dangduong31205@gmail.com>
This commit is contained in:
1
dev-libs/libayatana-appindicator-glib/Manifest
Normal file
1
dev-libs/libayatana-appindicator-glib/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST libayatana-appindicator-glib-2.0.1.tar.gz 127324 BLAKE2B 978e516aed2ad9652da88dd8cd568ec9848a042d10c5192b3e16cb1bdd0891ab30608b3973b965e5e9db4b759c978d2d0cee5329cf9e23f2f352d8e5d2aa8681 SHA512 3b5dfae2103702072fb56f80b8dc03a1dddb9eac1526c95a4a0d7c67ec548d7b48f4de5f6a758d8375af63e7e3df95bc782b56da0af376342495885cf0e03f82
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
find_program(INTROSPECTION_SCANNER NAMES g-ir-scanner)
|
||||||
|
find_program(INTROSPECTION_COMPILER NAMES g-ir-compiler)
|
||||||
|
|
||||||
|
if (INTROSPECTION_SCANNER AND INTROSPECTION_COMPILER)
|
||||||
|
set(GOBJECT_INTROSPECTION_FOUND TRUE)
|
||||||
|
message(STATUS "Found GObject Introspection: ${INTROSPECTION_SCANNER}")
|
||||||
|
else()
|
||||||
|
set(GOBJECT_INTROSPECTION_FOUND FALSE)
|
||||||
|
message(WARNING "Could not find GObject Introspection tools (g-ir-scanner, g-ir-compiler)")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced(INTROSPECTION_SCANNER INTROSPECTION_COMPILER)
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
find_program(VALA_COMPILER NAMES valac)
|
||||||
|
find_program(VAPI_GEN NAMES vapigen)
|
||||||
|
|
||||||
|
if (NOT VALA_COMPILER OR NOT VAPI_GEN)
|
||||||
|
file(GLOB _vala_bins "/usr/bin/valac-*")
|
||||||
|
file(GLOB _vapigen_bins "/usr/bin/vapigen-*")
|
||||||
|
|
||||||
|
if (_vala_bins)
|
||||||
|
list(SORT _vala_bins)
|
||||||
|
list(REVERSE _vala_bins)
|
||||||
|
list(GET _vala_bins 0 VALA_COMPILER)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (_vapigen_bins)
|
||||||
|
list(SORT _vapigen_bins)
|
||||||
|
list(REVERSE _vapigen_bins)
|
||||||
|
list(GET _vapigen_bins 0 VAPI_GEN)
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (VALA_COMPILER AND VAPI_GEN)
|
||||||
|
set(VALA_FOUND TRUE)
|
||||||
|
execute_process(
|
||||||
|
COMMAND "${VALA_COMPILER}" --version
|
||||||
|
OUTPUT_VARIABLE _vala_version
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
)
|
||||||
|
string(REGEX MATCH "[0-9]+\\.[0-9]+" VALA_VERSION "${_vala_version}")
|
||||||
|
message(STATUS "Found Vala: ${VALA_COMPILER} and ${VAPI_GEN} (version ${VALA_VERSION})")
|
||||||
|
else()
|
||||||
|
set(VALA_FOUND FALSE)
|
||||||
|
message(WARNING "Could not find valac/vapigen on this system!")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
mark_as_advanced(VALA_COMPILER VAPI_GEN)
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Ayatana Application Indicators Shared Library (GLib-2.0 reimplementation)"
|
||||||
|
HOMEPAGE="https://github.com/AyatanaIndicators/libayatana-appindicator-glib"
|
||||||
|
|
||||||
|
if [[ "${PV}" = "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/AyatanaIndicators/libayatana-appindicator-glib"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/AyatanaIndicators/libayatana-appindicator-glib/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
sys-libs/glibc
|
||||||
|
dev-libs/glib
|
||||||
|
sys-devel/gcc
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
kde-frameworks/extra-cmake-modules
|
||||||
|
dev-util/gi-docgen
|
||||||
|
dev-libs/gobject-introspection
|
||||||
|
dev-lang/vala
|
||||||
|
dev-libs/glib
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
cp -r "${FILESDIR}/cmake" "${S}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_TESTS=$(usex test ON OFF)
|
||||||
|
# -DENABLE_WERROR=OFF
|
||||||
|
# -DENABLE_COVERAGE=OFF
|
||||||
|
-DCMAKE_MODULE_PATH="${S}/cmake"
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
@@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 2025 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
DESCRIPTION="Ayatana Application Indicators Shared Library (GLib-2.0 reimplementation)"
|
||||||
|
HOMEPAGE="https://github.com/AyatanaIndicators/libayatana-appindicator-glib"
|
||||||
|
|
||||||
|
if [[ "${PV}" = "9999" ]]; then
|
||||||
|
EGIT_REPO_URI="https://github.com/AyatanaIndicators/libayatana-appindicator-glib"
|
||||||
|
inherit git-r3
|
||||||
|
else
|
||||||
|
SRC_URI="https://github.com/AyatanaIndicators/libayatana-appindicator-glib/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cmake
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="test"
|
||||||
|
RESTRICT="!test? ( test )"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
sys-libs/glibc
|
||||||
|
dev-libs/glib
|
||||||
|
sys-devel/gcc
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
BDEPEND="
|
||||||
|
kde-frameworks/extra-cmake-modules
|
||||||
|
dev-util/gi-docgen
|
||||||
|
dev-libs/gobject-introspection
|
||||||
|
dev-lang/vala
|
||||||
|
dev-libs/glib
|
||||||
|
"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_src_prepare
|
||||||
|
cp -r "${FILESDIR}/cmake" "${S}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_TESTS=$(usex test ON OFF)
|
||||||
|
# -DENABLE_WERROR=OFF
|
||||||
|
# -DENABLE_COVERAGE=OFF
|
||||||
|
-DCMAKE_MODULE_PATH="${S}/cmake"
|
||||||
|
)
|
||||||
|
cmake_src_configure
|
||||||
|
}
|
||||||
11
dev-libs/libayatana-appindicator-glib/metadata.xml
Normal file
11
dev-libs/libayatana-appindicator-glib/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>dangduong31205@gmail.com</email>
|
||||||
|
<name>Nguyen Dinh Dang Duong</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">AyatanaIndicators/libayatana-appindicator</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user