diff options
author | Maciej Barć <xgqt@protonmail.com> | 2020-11-28 18:35:23 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@protonmail.com> | 2020-11-28 18:35:23 +0100 |
commit | 8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d (patch) | |
tree | 481c0a5f0e92e943479ce84c75e7c37b8899be05 /dev-vcs/gitahead | |
parent | dev-python/outcome: version bump 1.1.0, add py3.9 (diff) | |
download | guru-8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d.tar.gz guru-8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d.tar.bz2 guru-8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d.zip |
dev-vcs/gitahead: new pkg; add version 2.6.3
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
Diffstat (limited to 'dev-vcs/gitahead')
-rw-r--r-- | dev-vcs/gitahead/Manifest | 6 | ||||
-rw-r--r-- | dev-vcs/gitahead/gitahead-2.6.3.ebuild | 90 | ||||
-rw-r--r-- | dev-vcs/gitahead/metadata.xml | 14 |
3 files changed, 110 insertions, 0 deletions
diff --git a/dev-vcs/gitahead/Manifest b/dev-vcs/gitahead/Manifest new file mode 100644 index 000000000..f5431ce04 --- /dev/null +++ b/dev-vcs/gitahead/Manifest @@ -0,0 +1,6 @@ +DIST gitahead-2.6.3-dep_cmark_cmark.tar.gz 231023 BLAKE2B b3e5768c04d33a6273befa8f1aa121b1f4df7ab1c4791c093681186b74b9a819824ff7d6369b456fe94e121344eecd704e71657d8004b1ef66b54ec4cb2a6abd SHA512 65fe291cfc9d163dff8ae69f98cb3449434405a50835056d2bf4aff43131f23d7d837c4ec7aa9bec93df184ff5d1210bff522d702fbddc96844dcf98f515d0b7 +DIST gitahead-2.6.3-dep_git_git.tar.gz 7968616 BLAKE2B 7d2ea9e1ca1faa1a8b66a9db6b213c02be966cec74abe085139e3e966adcff9efbd74fb942ad145ddea64bab94a6006b91b512c96aa645cb124bcaf6e5a488eb SHA512 37a77870e0df748b023f5381aa969f1126b142a3470c9df4e01d86cf3418a0b0e4cb16a37ef7b162f285bdd540559a3511488ec8591b2f88e495626df019c03f +DIST gitahead-2.6.3-dep_libgit2_libgit2.tar.gz 5322459 BLAKE2B 2a5a4e98e3d6f2883f60604ea5721a56fbc9f3c2403686cda5b65e3fe859bbbe773d30d7fbf8a9d1549aeeda3367526d8604047a27cde490edc8f3fb982fa0c6 SHA512 068be7000e8c9f01073ffa315e398b687e937fbd63fb77021a307cfefc8382ddb085a36f6a2b40bade355d6ffcb1772de8551b9eb6f9eb56877805883804114d +DIST gitahead-2.6.3-dep_libssh2_libssh2.tar.gz 464738 BLAKE2B 6520c4df6584798505da8e14bfb4fe43389d0b3702d7eee6ce6b604d3260df7fda5c79cef8f69614035efeb31e516da63464313e11f64b6e8995a39c814683e8 SHA512 e86c0787e2aa7be5e9f19356e543493e53c7d1b51b585c46facfb05f769e6491209f820b207bf594348f4760c492c32dda3fcc94fc0af93cb09c736492a8e231 +DIST gitahead-2.6.3-dep_openssl_openssl.tar.gz 11271304 BLAKE2B 35ed131c683d4bb343ca5891553eef3c6079a90b475d54e1d68917b7fb3d88e34880c8f222d2f2633e2ed4eb52c3b2ca57def4d48e16693e2e766666915dd0f4 SHA512 98c0491ea2051120cbb369ac1e069028d21746d70a3a9cb5553ea27d52ab2e68353390c89e9c0202cea2fcd0b1a39cc070e29119b322aedd3d58e014626f6f05 +DIST gitahead-2.6.3.tar.gz 34528473 BLAKE2B e35a055e62dab67d7a6efd0e9783ff485d3208b85e8e799f722d1346f55b1cdd1c7983631aab1766d2d64577e3ba37350fa89713f25562273c52ecfca43029d8 SHA512 8d64efc156343a9c04d12c8a41742e36aed39260d0040ec1a52ce567a73e156f1ce77c61672cb93ef30c0b6c7ee48d9a6e94381ce7034142cdcf2f60a839c712 diff --git a/dev-vcs/gitahead/gitahead-2.6.3.ebuild b/dev-vcs/gitahead/gitahead-2.6.3.ebuild new file mode 100644 index 000000000..76c021d07 --- /dev/null +++ b/dev-vcs/gitahead/gitahead-2.6.3.ebuild @@ -0,0 +1,90 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake desktop xdg wrapper + +DESCRIPTION="Graphical Git client to help understand and manage source code history" +HOMEPAGE="https://github.com/gitahead/gitahead" +SRC_URI=" + https://github.com/gitahead/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/openssl/openssl/archive/d1c28d791a7391a8dc101713cd8646df96491d03.tar.gz -> ${P}-dep_openssl_openssl.tar.gz + https://github.com/stinb/libgit2/archive/90af68bbe2690998f015f18b7c890f5868bcd3ee.tar.gz -> ${P}-dep_libgit2_libgit2.tar.gz + https://github.com/libssh2/libssh2/archive/42d37aa63129a1b2644bf6495198923534322d64.tar.gz -> ${P}-dep_libssh2_libssh2.tar.gz + https://github.com/git/git/archive/0d0ac3826a3bbb9247e39e12623bbcfdd722f24c.tar.gz -> ${P}-dep_git_git.tar.gz + https://github.com/commonmark/cmark/archive/f0793895eefc8ca14499831a24abee549a5af53e.tar.gz -> ${P}-dep_cmark_cmark.tar.gz +" + +RESTRICT="test" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qttest:5 + dev-qt/qtwidgets:5 +" +DEPEND=" + ${RDEPEND} +" + +src_unpack() { + unpack "${P}.tar.gz" + + cd "${S}" || die + local i list=( + dep_openssl_openssl + dep_libgit2_libgit2 + dep_libssh2_libssh2 + dep_git_git + dep_cmark_cmark + ) + for i in "${list[@]}"; do + [ ! -f "${DISTDIR}/${P}-${i}.tar.gz" ] && die "The file ${DISTDIR}/${P}-${i}.tar.gz doesn't exist" + tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" || die "Failed to unpack ${P}-${i}.tar.gz" + done +} + +src_prepare() { + cmake_src_prepare +} + +src_configure() { + cmake_src_configure +} + +src_install() { + cd "${BUILD_DIR}" || die + + eninja package + cd ./_CPack_Packages/Linux/STGZ || die + mkdir -p "${D}"/usr/share || die + bash ./GitAhead-2.6.3.sh --prefix="${D}"/usr/share --include-subdir || die + rm -fr "${D}"/usr/share/GitAhead/*.so.* || die + + cd "${D}"/usr/share/GitAhead/Resources/GitAhead.iconset || die + local res + for res in 16 32 64 128 256 512; do + newicon -s "${res}" "icon_${res}x${res}.png" "${PN}.png" + done + + make_wrapper "${PN}" "${EPREFIX}/usr/share/GitAhead/GitAhead" + make_desktop_entry "/usr/share/GitAhead/GitAhead" "GitAhead" "${PN}" "Development" +} + +pkg_postinst() { + xdg_pkg_postinst + + ewarn "${P} collects some statistical usage data." + ewarn "To permanently opt-out of reporting:" + ewarn "toggle a button in Help -> About GitAhead -> Privacy" + ewarn "or write to ~/.config/gitahead.com/GitAhead.conf those lines:" + ewarn "[tracking]" + ewarn "enabled=false" +} diff --git a/dev-vcs/gitahead/metadata.xml b/dev-vcs/gitahead/metadata.xml new file mode 100644 index 000000000..dbd1b3d46 --- /dev/null +++ b/dev-vcs/gitahead/metadata.xml @@ -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> + <upstream> + <remote-id type="github">gitahead/gitahead</remote-id> + </upstream> + <longdescription> + GitAhead is a graphical Git client designed to help you understand and manage your source code history. + </longdescription> +</pkgmetadata> |