Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-vcs/gitahead/
Date: Sun, 29 Nov 2020 10:34:11
Message-Id: 1606584923.8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d.andrewammerlaan@gentoo
1 commit: 8bcb90c2a8aa2a31b16b22cad370fb31dd7e404d
2 Author: Maciej Barć <xgqt <AT> protonmail <DOT> com>
3 AuthorDate: Sat Nov 28 17:35:23 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Sat Nov 28 17:35:23 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8bcb90c2
7
8 dev-vcs/gitahead: new pkg; add version 2.6.3
9
10 Package-Manager: Portage-3.0.9, Repoman-3.0.2
11 Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>
12
13 dev-vcs/gitahead/Manifest | 6 +++
14 dev-vcs/gitahead/gitahead-2.6.3.ebuild | 90 ++++++++++++++++++++++++++++++++++
15 dev-vcs/gitahead/metadata.xml | 14 ++++++
16 3 files changed, 110 insertions(+)
17
18 diff --git a/dev-vcs/gitahead/Manifest b/dev-vcs/gitahead/Manifest
19 new file mode 100644
20 index 00000000..f5431ce0
21 --- /dev/null
22 +++ b/dev-vcs/gitahead/Manifest
23 @@ -0,0 +1,6 @@
24 +DIST gitahead-2.6.3-dep_cmark_cmark.tar.gz 231023 BLAKE2B b3e5768c04d33a6273befa8f1aa121b1f4df7ab1c4791c093681186b74b9a819824ff7d6369b456fe94e121344eecd704e71657d8004b1ef66b54ec4cb2a6abd SHA512 65fe291cfc9d163dff8ae69f98cb3449434405a50835056d2bf4aff43131f23d7d837c4ec7aa9bec93df184ff5d1210bff522d702fbddc96844dcf98f515d0b7
25 +DIST gitahead-2.6.3-dep_git_git.tar.gz 7968616 BLAKE2B 7d2ea9e1ca1faa1a8b66a9db6b213c02be966cec74abe085139e3e966adcff9efbd74fb942ad145ddea64bab94a6006b91b512c96aa645cb124bcaf6e5a488eb SHA512 37a77870e0df748b023f5381aa969f1126b142a3470c9df4e01d86cf3418a0b0e4cb16a37ef7b162f285bdd540559a3511488ec8591b2f88e495626df019c03f
26 +DIST gitahead-2.6.3-dep_libgit2_libgit2.tar.gz 5322459 BLAKE2B 2a5a4e98e3d6f2883f60604ea5721a56fbc9f3c2403686cda5b65e3fe859bbbe773d30d7fbf8a9d1549aeeda3367526d8604047a27cde490edc8f3fb982fa0c6 SHA512 068be7000e8c9f01073ffa315e398b687e937fbd63fb77021a307cfefc8382ddb085a36f6a2b40bade355d6ffcb1772de8551b9eb6f9eb56877805883804114d
27 +DIST gitahead-2.6.3-dep_libssh2_libssh2.tar.gz 464738 BLAKE2B 6520c4df6584798505da8e14bfb4fe43389d0b3702d7eee6ce6b604d3260df7fda5c79cef8f69614035efeb31e516da63464313e11f64b6e8995a39c814683e8 SHA512 e86c0787e2aa7be5e9f19356e543493e53c7d1b51b585c46facfb05f769e6491209f820b207bf594348f4760c492c32dda3fcc94fc0af93cb09c736492a8e231
28 +DIST gitahead-2.6.3-dep_openssl_openssl.tar.gz 11271304 BLAKE2B 35ed131c683d4bb343ca5891553eef3c6079a90b475d54e1d68917b7fb3d88e34880c8f222d2f2633e2ed4eb52c3b2ca57def4d48e16693e2e766666915dd0f4 SHA512 98c0491ea2051120cbb369ac1e069028d21746d70a3a9cb5553ea27d52ab2e68353390c89e9c0202cea2fcd0b1a39cc070e29119b322aedd3d58e014626f6f05
29 +DIST gitahead-2.6.3.tar.gz 34528473 BLAKE2B e35a055e62dab67d7a6efd0e9783ff485d3208b85e8e799f722d1346f55b1cdd1c7983631aab1766d2d64577e3ba37350fa89713f25562273c52ecfca43029d8 SHA512 8d64efc156343a9c04d12c8a41742e36aed39260d0040ec1a52ce567a73e156f1ce77c61672cb93ef30c0b6c7ee48d9a6e94381ce7034142cdcf2f60a839c712
30
31 diff --git a/dev-vcs/gitahead/gitahead-2.6.3.ebuild b/dev-vcs/gitahead/gitahead-2.6.3.ebuild
32 new file mode 100644
33 index 00000000..76c021d0
34 --- /dev/null
35 +++ b/dev-vcs/gitahead/gitahead-2.6.3.ebuild
36 @@ -0,0 +1,90 @@
37 +# Copyright 1999-2020 Gentoo Authors
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=7
41 +
42 +inherit cmake desktop xdg wrapper
43 +
44 +DESCRIPTION="Graphical Git client to help understand and manage source code history"
45 +HOMEPAGE="https://github.com/gitahead/gitahead"
46 +SRC_URI="
47 + https://github.com/gitahead/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
48 + https://github.com/openssl/openssl/archive/d1c28d791a7391a8dc101713cd8646df96491d03.tar.gz -> ${P}-dep_openssl_openssl.tar.gz
49 + https://github.com/stinb/libgit2/archive/90af68bbe2690998f015f18b7c890f5868bcd3ee.tar.gz -> ${P}-dep_libgit2_libgit2.tar.gz
50 + https://github.com/libssh2/libssh2/archive/42d37aa63129a1b2644bf6495198923534322d64.tar.gz -> ${P}-dep_libssh2_libssh2.tar.gz
51 + https://github.com/git/git/archive/0d0ac3826a3bbb9247e39e12623bbcfdd722f24c.tar.gz -> ${P}-dep_git_git.tar.gz
52 + https://github.com/commonmark/cmark/archive/f0793895eefc8ca14499831a24abee549a5af53e.tar.gz -> ${P}-dep_cmark_cmark.tar.gz
53 +"
54 +
55 +RESTRICT="test"
56 +LICENSE="MIT"
57 +SLOT="0"
58 +KEYWORDS="~amd64"
59 +
60 +RDEPEND="
61 + dev-qt/qtconcurrent:5
62 + dev-qt/qtcore:5
63 + dev-qt/qtgui:5
64 + dev-qt/qtnetwork:5
65 + dev-qt/qtprintsupport:5
66 + dev-qt/qttest:5
67 + dev-qt/qtwidgets:5
68 +"
69 +DEPEND="
70 + ${RDEPEND}
71 +"
72 +
73 +src_unpack() {
74 + unpack "${P}.tar.gz"
75 +
76 + cd "${S}" || die
77 + local i list=(
78 + dep_openssl_openssl
79 + dep_libgit2_libgit2
80 + dep_libssh2_libssh2
81 + dep_git_git
82 + dep_cmark_cmark
83 + )
84 + for i in "${list[@]}"; do
85 + [ ! -f "${DISTDIR}/${P}-${i}.tar.gz" ] && die "The file ${DISTDIR}/${P}-${i}.tar.gz doesn't exist"
86 + tar xf "${DISTDIR}/${P}-${i}.tar.gz" --strip-components 1 -C "${i//_//}" || die "Failed to unpack ${P}-${i}.tar.gz"
87 + done
88 +}
89 +
90 +src_prepare() {
91 + cmake_src_prepare
92 +}
93 +
94 +src_configure() {
95 + cmake_src_configure
96 +}
97 +
98 +src_install() {
99 + cd "${BUILD_DIR}" || die
100 +
101 + eninja package
102 + cd ./_CPack_Packages/Linux/STGZ || die
103 + mkdir -p "${D}"/usr/share || die
104 + bash ./GitAhead-2.6.3.sh --prefix="${D}"/usr/share --include-subdir || die
105 + rm -fr "${D}"/usr/share/GitAhead/*.so.* || die
106 +
107 + cd "${D}"/usr/share/GitAhead/Resources/GitAhead.iconset || die
108 + local res
109 + for res in 16 32 64 128 256 512; do
110 + newicon -s "${res}" "icon_${res}x${res}.png" "${PN}.png"
111 + done
112 +
113 + make_wrapper "${PN}" "${EPREFIX}/usr/share/GitAhead/GitAhead"
114 + make_desktop_entry "/usr/share/GitAhead/GitAhead" "GitAhead" "${PN}" "Development"
115 +}
116 +
117 +pkg_postinst() {
118 + xdg_pkg_postinst
119 +
120 + ewarn "${P} collects some statistical usage data."
121 + ewarn "To permanently opt-out of reporting:"
122 + ewarn "toggle a button in Help -> About GitAhead -> Privacy"
123 + ewarn "or write to ~/.config/gitahead.com/GitAhead.conf those lines:"
124 + ewarn "[tracking]"
125 + ewarn "enabled=false"
126 +}
127
128 diff --git a/dev-vcs/gitahead/metadata.xml b/dev-vcs/gitahead/metadata.xml
129 new file mode 100644
130 index 00000000..dbd1b3d4
131 --- /dev/null
132 +++ b/dev-vcs/gitahead/metadata.xml
133 @@ -0,0 +1,14 @@
134 +<?xml version="1.0" encoding="UTF-8"?>
135 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
136 +<pkgmetadata>
137 + <maintainer type="person">
138 + <email>xgqt@××××××××××.com</email>
139 + <name>Maciej Barć</name>
140 + </maintainer>
141 + <upstream>
142 + <remote-id type="github">gitahead/gitahead</remote-id>
143 + </upstream>
144 + <longdescription>
145 + GitAhead is a graphical Git client designed to help you understand and manage your source code history.
146 + </longdescription>
147 +</pkgmetadata>