mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
app-misc/diff-so-fancy: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
app-misc/diff-so-fancy/Manifest
Normal file
1
app-misc/diff-so-fancy/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST diff-so-fancy-1.4.0.tar.gz 46216 BLAKE2B c68a41a74bfc4f280aa3a90d9cbf6c63dbecaa917e83bb6403dfa1ee3ea7837f5348d1a44fa7673ad5c65a3f2948d1e028865b21f6f04a0f495cc54755c99535 SHA512 b92bdf6d7868fe183f2ea7d655f9619c2059ff7d10901ed445762ed5baff0944528b1e409f36e5d47ce51eb39b106617f302a6926995aeab27324cb3e5f6f293
|
||||
36
app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild
Normal file
36
app-misc/diff-so-fancy/diff-so-fancy-1.4.0.ebuild
Normal file
@@ -0,0 +1,36 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
SRC_URI="https://github.com/so-fancy/diff-so-fancy/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
DESCRIPTION="Good-lookin' diffs. Actually... nah... The best-lookin' diffs."
|
||||
HOMEPAGE="https://github.com/so-fancy/diff-so-fancy"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
#RESTRICT="!test? ( test )"
|
||||
RESTRICT="test" #investigate
|
||||
RDEPEND=""
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-lang/perl
|
||||
"
|
||||
BDEPEND="test? ( dev-util/bats )"
|
||||
PATCHES=( "${FILESDIR}/fix-path.patch" )
|
||||
DOCS=( README.md history.md pro-tips.md )
|
||||
|
||||
src_install() {
|
||||
dobin "${PN}"
|
||||
|
||||
insinto "/usr/share/${PN}"
|
||||
doins lib/*
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
|
||||
src_test() {
|
||||
bats test || die
|
||||
}
|
||||
11
app-misc/diff-so-fancy/files/fix-path.patch
Normal file
11
app-misc/diff-so-fancy/files/fix-path.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/diff-so-fancy
|
||||
+++ b/diff-so-fancy
|
||||
@@ -9,7 +9,7 @@
|
||||
use File::Basename; # For dirname
|
||||
use Encode; # For handling UTF8 stuff
|
||||
use Cwd qw(abs_path); # For realpath()
|
||||
-use lib dirname(abs_path(File::Spec->catdir($0))) . "/lib"; # Add the local lib/ to @INC
|
||||
+use lib "/usr/share/diff-so-fancy";
|
||||
use DiffHighlight;
|
||||
|
||||
use strict;
|
||||
13
app-misc/diff-so-fancy/metadata.xml
Normal file
13
app-misc/diff-so-fancy/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<description>co-maintainers welcome</description>
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">so-fancy/diff-so-fancy</remote-id>
|
||||
<remote-id type="gitlab">so-fancy/diff-so-fancy</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user