diff --git a/media-gfx/gpick/Manifest b/media-gfx/gpick/Manifest new file mode 100644 index 0000000..f990d54 --- /dev/null +++ b/media-gfx/gpick/Manifest @@ -0,0 +1 @@ +DIST gpick-0.2.6.tar.gz 363810 BLAKE2B f7166e271cf9bd2fcb32b0f512eb9d5f2b0f4ed0de18a3a9b6a938882a40e7ae7966e6d7a989cf9500b3c643c105302c2e2ec993746f7e53c1a268265616eb57 SHA512 85f4d0978915e0c0b6e412d619a28af62a43547d39c4b97d8dddc4024f9d8b339f09e91f70d929073ebbad7a6e008e174aa76fdc611008ba269dedb403ed6867 diff --git a/media-gfx/gpick/gpick-0.2.6.ebuild b/media-gfx/gpick/gpick-0.2.6.ebuild new file mode 100644 index 0000000..856a0f5 --- /dev/null +++ b/media-gfx/gpick/gpick-0.2.6.ebuild @@ -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 +} diff --git a/media-gfx/gpick/metadata.xml b/media-gfx/gpick/metadata.xml new file mode 100644 index 0000000..10a2485 --- /dev/null +++ b/media-gfx/gpick/metadata.xml @@ -0,0 +1,14 @@ + + + + + xgqt@protonmail.com + Maciej Barć + + + Enable support for GTK+2 instead of GTK+3 + + + thezbyg/gpick + +