media-gfx/gpick: new pkg; add 0.2.6

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć 2021-01-16 17:23:03 +01:00
parent 2c4c7c43df
commit fc79de3a5e
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
3 changed files with 77 additions and 0 deletions

1
media-gfx/gpick/Manifest Normal file
View File

@ -0,0 +1 @@
DIST gpick-0.2.6.tar.gz 363810 BLAKE2B f7166e271cf9bd2fcb32b0f512eb9d5f2b0f4ed0de18a3a9b6a938882a40e7ae7966e6d7a989cf9500b3c643c105302c2e2ec993746f7e53c1a268265616eb57 SHA512 85f4d0978915e0c0b6e412d619a28af62a43547d39c4b97d8dddc4024f9d8b339f09e91f70d929073ebbad7a6e008e174aa76fdc611008ba269dedb403ed6867

View File

@ -0,0 +1,62 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs xdg cmake
DESCRIPTION="Advanced color picker written in C++ using GTK+ toolkit"
HOMEPAGE="https://github.com/thezbyg/gpick"
if [[ "${PV}" == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/thezbyg/${PN}.git"
else
SRC_URI="https://github.com/thezbyg/${PN}/archive/${P}.tar.gz"
KEYWORDS="~amd64"
fi
RESTRICT="mirror test"
LICENSE="BSD"
SLOT="0"
IUSE="gtk2 nls"
DEPEND="
>=dev-libs/boost-1.74.0
dev-lang/lua
dev-libs/expat
gtk2? ( x11-libs/gtk+:2 )
!gtk2? ( x11-libs/gtk+:3 )
"
RDEPEND="
${DEPEND}
"
S="${WORKDIR}/gpick-gpick-${PV}"
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX=/usr
-DENABLE_NLS=$(usex nls ON OFF)
# gtk3 == no gtk2
-DUSE_GTK3=$(usex gtk2 OFF ON)
)
cmake_src_configure
}
src_install() {
# DEBUG: cmake_src_install doesn't install libs
pushd "${BUILD_DIR}" || die
exeinto "/usr/$(get_libdir)"
local l
for l in *.so
do
doexe "${l}"
done
popd || die
cmake_src_install
# DEBUG: Correct doc path
mv "${D}/usr/share/doc/${PN}" "${D}/usr/share/doc/${P}" || die
}

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xgqt@protonmail.com</email>
<name>Maciej Barć</name>
</maintainer>
<use>
<flag name="gtk2">Enable support for GTK+2 instead of GTK+3</flag>
</use>
<upstream>
<remote-id type="github">thezbyg/gpick</remote-id>
</upstream>
</pkgmetadata>