diff --git a/dev-cpp/identiconpp/Manifest b/dev-cpp/identiconpp/Manifest index 287d80f..7236e76 100644 --- a/dev-cpp/identiconpp/Manifest +++ b/dev-cpp/identiconpp/Manifest @@ -1,12 +1,14 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +DIST identiconpp-0.1.2.tar.gz 21303 BLAKE2B 32659ebf77eaa9d8d1e0d57ba8b678bd721044d504a6767bc1319a13786336e72e3827eabbf21858a4ba70cc0a724616516026c805b176a0b65ba6a7de23a1e1 SHA512 3132f34ef91b680d17f63f302b812d5f172c710233dab771938d350180d52200bcf9527b393a9f94f9b9f8f8c7d92e02cfe427d294c65fe1282718e94b4512ec +EBUILD identiconpp-0.1.2.ebuild 1160 BLAKE2B 13400483c12bb14a858712e359443f23c64fc80e28abf4e8ac81c694507cba4d38564ca8388c73f50242a8eeb54d031dcd6ba62e82059ee7f447326c11ab6f2e SHA512 f921b22cd39ac1d0ab5c5dcf31756a22349538c0ebb25447f29a61f9dc9f41bc0e00128d5f88642f3d766afbdcd4873c4f7cc44e5b09a34cd60979e01a22c2cf EBUILD identiconpp-9999.ebuild 1160 BLAKE2B 13400483c12bb14a858712e359443f23c64fc80e28abf4e8ac81c694507cba4d38564ca8388c73f50242a8eeb54d031dcd6ba62e82059ee7f447326c11ab6f2e SHA512 f921b22cd39ac1d0ab5c5dcf31756a22349538c0ebb25447f29a61f9dc9f41bc0e00128d5f88642f3d766afbdcd4873c4f7cc44e5b09a34cd60979e01a22c2cf MISC metadata.xml 351 BLAKE2B 71ac0893a9aba22d39b57647195232d4012c98b5d6f8551638f124bf474188d4177f4861325f218ee86042caf04f84a7b7ae3fb8f68bb8228af660219df666ed SHA512 baac3c95f337d0d6b89b673063f710627650028c8c581e8eda0ac14b7bd8043efe5b8ce767cd8ee9e3e5dc7f7a434e403e7426371e3573ed7e5ec932abf5a7e6 -----BEGIN PGP SIGNATURE----- -iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXCL/IwAKCRDPw5SX8bJu -ByRnAQCFJKQ9a7Ipm+CftlNgGvNztc8C/pmj8mRwJcfaRteSvgD/WQfD7pO+CXih -Z1oyIeSihBS5Vzci5+wIN7dp6eOGxZs= -=zAf2 +iHUEAREIAB0WIQQ1VSZoZMptf/RapufPw5SX8bJuBwUCXCPA0AAKCRDPw5SX8bJu +BwmuAP9R7TOBEmyrjhyekYFvzvvL3n3ptBUAcMhaOu4cP+tU+AD+NVQH93/pAq5T +Xt++cRjfFE6Lt5vgqa+4P8ID203UGLg= +=l2mk -----END PGP SIGNATURE----- diff --git a/dev-cpp/identiconpp/identiconpp-0.1.2.ebuild b/dev-cpp/identiconpp/identiconpp-0.1.2.ebuild new file mode 100644 index 0000000..fa334d5 --- /dev/null +++ b/dev-cpp/identiconpp/identiconpp-0.1.2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 +fi + +DESCRIPTION="Library to generate identicons. Written in C++." +HOMEPAGE="https://schlomp.space/tastytea/identiconpp" +if [[ "${PV}" == "9999" ]]; then + EGIT_REPO_URI="https://schlomp.space/tastytea/identiconpp.git" +else + SRC_URI="https://schlomp.space/tastytea/identiconpp/archive/${PV}.tar.gz + -> ${P}.tar.gz" +fi + +LICENSE="GPL-3" +SLOT="0" +if [[ "${PV}" == "9999" ]]; then + KEYWORDS="" +else + KEYWORDS="~amd64" +fi +IUSE="doc examples" + +RDEPEND=" + media-gfx/imagemagick[png] +" +DEPEND=" + dev-util/cmake + doc? ( app-doc/doxygen ) + ${RDEPEND} +" + +if [[ "${PV}" != "9999" ]]; then + S="${WORKDIR}/${PN}" +fi + +src_prepare() { + cmake-utils_src_prepare + + sed -i "s|\${CMAKE_INSTALL_DOCDIR}|\${CMAKE_INSTALL_DATAROOTDIR}/doc/${P}|" \ + CMakeLists.txt || die "Modification of CMAKE_INSTALL_DOCDIR failed." + + if use doc; then + HTML_DOCS="doc/html/*" + fi + if use examples; then + DOCS+=(example.cpp) + fi +} + +src_compile() { + cmake-utils_src_compile + + if use doc; then + ./build_doc.sh + fi +}