mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-hare/hare-gi: new package, add 0.1.0
Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
1
dev-hare/hare-gi/Manifest
Normal file
1
dev-hare/hare-gi/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST hare-gi-0.1.0.tar.gz 28569 BLAKE2B be3fc03f817b33df90bd53280fd651c5eacad6d38abddef66820ea4f176e4c78580d5c9e03a6ac0dfb60a9c70436260158dcba3501595aa3b78828bbf7dbbc17 SHA512 89ee6ab7a2f01ef87e0eb7ef1edd00c1375f82b76fc3148284e0de5c64a8398d5872c1def342463f5d73b34d32445339aa422bbfa24985bc2b464e648c311768
|
||||
62
dev-hare/hare-gi/hare-gi-0.1.0.ebuild
Normal file
62
dev-hare/hare-gi/hare-gi-0.1.0.ebuild
Normal file
@@ -0,0 +1,62 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
if [[ "${PV}" = 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://git.sr.ht/~yerinalexey/hare-gi"
|
||||
SLOT="0"
|
||||
else
|
||||
SRC_URI="https://git.sr.ht/~yerinalexey/hare-gi/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SLOT="0/${PV}"
|
||||
|
||||
KEYWORDS="~amd64 ~arm64 ~riscv"
|
||||
fi
|
||||
|
||||
DESCRIPTION="GObject Introspection code generator for Hare"
|
||||
HOMEPAGE="https://git.sr.ht/~yerinalexey/hare-gi"
|
||||
LICENSE="MPL-2.0"
|
||||
|
||||
IUSE="+gtk3 +gtk4"
|
||||
REQUIRED_USE="|| ( gtk3 gtk4 )"
|
||||
|
||||
DEPEND="
|
||||
>=dev-lang/hare-0.25.2
|
||||
>=dev-libs/glib-2.80.5[introspection]
|
||||
dev-libs/gobject-introspection
|
||||
dev-libs/atk[introspection]
|
||||
x11-libs/gdk-pixbuf:2[introspection]
|
||||
media-libs/harfbuzz[introspection]
|
||||
x11-libs/pango[introspection]
|
||||
gtk3? (
|
||||
x11-libs/gtk+:3[introspection]
|
||||
)
|
||||
gtk4? (
|
||||
gui-libs/gtk:4[introspection]
|
||||
media-libs/graphene[introspection]
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i 's;^PREFIX = .*;PREFIX = /usr;' Makefile || die
|
||||
|
||||
if ! use gtk3; then
|
||||
sed -i '/^install: /s;install-gtk3;;' Makefile || die
|
||||
fi
|
||||
if ! use gtk4; then
|
||||
sed -i '/^install: /s;install-gtk4;;' Makefile || die
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
emake hare-gi
|
||||
if use gtk3; then
|
||||
./scripts/generate-gtk3 || die
|
||||
fi
|
||||
if use gtk4; then
|
||||
./scripts/generate-gtk4 || die
|
||||
fi
|
||||
touch .gen || die
|
||||
}
|
||||
12
dev-hare/hare-gi/metadata.xml
Normal file
12
dev-hare/hare-gi/metadata.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>contact@hacktivis.me</email>
|
||||
<name>Haelwenn (lanodan) Monnier</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="gtk3">Generate bindings for GTK+3</flag>
|
||||
<flag name="gtk4">Generate bindings for GTK 4</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user