1 |
commit: 4784c3a10035dd70b343b88b24e2c8ecf3b2a55f |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 3 06:23:10 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Mon May 3 06:26:14 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4784c3a1 |
7 |
|
8 |
app-misc/diff-so-fancy: initial import |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
app-misc/diff-so-fancy/Manifest | 1 + |
13 |
app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild | 36 +++++++++++++++++++++++ |
14 |
app-misc/diff-so-fancy/files/fix-path.patch | 11 +++++++ |
15 |
app-misc/diff-so-fancy/metadata.xml | 13 ++++++++ |
16 |
4 files changed, 61 insertions(+) |
17 |
|
18 |
diff --git a/app-misc/diff-so-fancy/Manifest b/app-misc/diff-so-fancy/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..d9adbf2ea |
21 |
--- /dev/null |
22 |
+++ b/app-misc/diff-so-fancy/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST diff-so-fancy-1.4.0.tar.gz 46216 BLAKE2B c68a41a74bfc4f280aa3a90d9cbf6c63dbecaa917e83bb6403dfa1ee3ea7837f5348d1a44fa7673ad5c65a3f2948d1e028865b21f6f04a0f495cc54755c99535 SHA512 b92bdf6d7868fe183f2ea7d655f9619c2059ff7d10901ed445762ed5baff0944528b1e409f36e5d47ce51eb39b106617f302a6926995aeab27324cb3e5f6f293 |
25 |
|
26 |
diff --git a/app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild b/app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..2e89c0d96 |
29 |
--- /dev/null |
30 |
+++ b/app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild |
31 |
@@ -0,0 +1,36 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+SRC_URI="https://github.com/so-fancy/diff-so-fancy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
38 |
+DESCRIPTION="Good-lookin' diffs. Actually... nah... The best-lookin' diffs." |
39 |
+HOMEPAGE="https://github.com/so-fancy/diff-so-fancy" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64" |
44 |
+IUSE="test" |
45 |
+#RESTRICT="!test? ( test )" |
46 |
+RESTRICT="test" #investigate |
47 |
+RDEPEND="" |
48 |
+DEPEND=" |
49 |
+ ${RDEPEND} |
50 |
+ dev-lang/perl |
51 |
+" |
52 |
+BDEPEND="test? ( dev-util/bats )" |
53 |
+PATCHES=( "${FILESDIR}/fix-path.patch" ) |
54 |
+DOCS=( README.md history.md pro-tips.md ) |
55 |
+ |
56 |
+src_install() { |
57 |
+ dobin "${PN}" |
58 |
+ |
59 |
+ insinto "/usr/share/${PN}" |
60 |
+ doins lib/* |
61 |
+ |
62 |
+ einstalldocs |
63 |
+} |
64 |
+ |
65 |
+src_test() { |
66 |
+ bats test || die |
67 |
+} |
68 |
|
69 |
diff --git a/app-misc/diff-so-fancy/files/fix-path.patch b/app-misc/diff-so-fancy/files/fix-path.patch |
70 |
new file mode 100644 |
71 |
index 000000000..fc04cebcd |
72 |
--- /dev/null |
73 |
+++ b/app-misc/diff-so-fancy/files/fix-path.patch |
74 |
@@ -0,0 +1,11 @@ |
75 |
+--- a/diff-so-fancy |
76 |
++++ b/diff-so-fancy |
77 |
+@@ -9,7 +9,7 @@ |
78 |
+ use File::Basename; # For dirname |
79 |
+ use Encode; # For handling UTF8 stuff |
80 |
+ use Cwd qw(abs_path); # For realpath() |
81 |
+-use lib dirname(abs_path(File::Spec->catdir($0))) . "/lib"; # Add the local lib/ to @INC |
82 |
++use lib "/usr/share/diff-so-fancy"; |
83 |
+ use DiffHighlight; |
84 |
+ |
85 |
+ use strict; |
86 |
|
87 |
diff --git a/app-misc/diff-so-fancy/metadata.xml b/app-misc/diff-so-fancy/metadata.xml |
88 |
new file mode 100644 |
89 |
index 000000000..f6d5fdd00 |
90 |
--- /dev/null |
91 |
+++ b/app-misc/diff-so-fancy/metadata.xml |
92 |
@@ -0,0 +1,13 @@ |
93 |
+<?xml version="1.0" encoding="UTF-8"?> |
94 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
95 |
+<pkgmetadata> |
96 |
+ <maintainer type="person"> |
97 |
+ <description>co-maintainers welcome</description> |
98 |
+ <email>lssndrbarbieri@×××××.com</email> |
99 |
+ <name>Alessandro Barbieri</name> |
100 |
+ </maintainer> |
101 |
+ <upstream> |
102 |
+ <remote-id type="github">so-fancy/diff-so-fancy</remote-id> |
103 |
+ <remote-id type="gitlab">so-fancy/diff-so-fancy</remote-id> |
104 |
+ </upstream> |
105 |
+</pkgmetadata> |