This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/x11-misc/gcolor2/gcolor2-0.4-r4.ebuild
tastytea 492c84f7c6
x11-misc/gcolor2: initial import
Signed-off-by: tastytea <tastytea@tastytea.de>
2022-04-17 08:54:27 +02:00

48 lines
1.0 KiB
Bash

# Copyright 1999-2020, 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools desktop xdg
DESCRIPTION="A GTK+ color selector"
HOMEPAGE="http://gcolor2.sourceforge.net"
SRC_URI="
mirror://sourceforge/${PN}/${P}.tar.gz
https://dev.gentoo.org/~pacho/gnome/${PN}.svg"
LICENSE="GPL-2 public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
RDEPEND=">=x11-libs/gtk+-2.4:2"
DEPEND="${RDEPEND}"
BDEPEND="
>=dev-util/intltool-0.27
virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/modular-rgb.patch
"${FILESDIR}"/${P}-amd64.patch
"${FILESDIR}"/${P}-pkg-config-macro.patch
"${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {
xdg_src_prepare
# To check at each bump.
sed "s/^#.*/[encoding: UTF-8]/" -i po/POTFILES.in || die "sed failed"
echo "gcolor2.glade" >> po/POTFILES.in || die
eautoreconf
}
src_install() {
default
# Icon from https://sourceforge.net/p/gcolor2/patches/5/
doicon -s scalable "${DISTDIR}/${PN}.svg"
make_desktop_entry ${PN} Gcolor2 ${PN} Graphics
}