summaryrefslogtreecommitdiff
path: root/app-shells/psh
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-shells/psh
reinit the tree, so we can have metadata
Diffstat (limited to 'app-shells/psh')
-rw-r--r--app-shells/psh/Manifest7
-rw-r--r--app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch37
-rw-r--r--app-shells/psh/files/psh-1.8.1-r3-defined-array.patch11
-rw-r--r--app-shells/psh/metadata.xml11
-rw-r--r--app-shells/psh/psh-1.8.1-r3.ebuild40
5 files changed, 106 insertions, 0 deletions
diff --git a/app-shells/psh/Manifest b/app-shells/psh/Manifest
new file mode 100644
index 000000000000..4b2d475c88aa
--- /dev/null
+++ b/app-shells/psh/Manifest
@@ -0,0 +1,7 @@
+AUX psh-1.8.1-r3-array-ref-deprecated.patch 1175 SHA256 2befd7178e3e6f515927f41af9ba14a8a9340af96fac34669992c3fdc64499c7 SHA512 52a03f5d5b9716bc28c11ea4726295f7e45d80694a6091fc21bfc32ca6220ebeabd009f96754e4a0c9389087424882d8ea0365f2ad749a9a9fda6e2f6f9ec633 WHIRLPOOL 086c03c15b8dae71216f7775b0bd21a767ac4d4001b47b09d04e0f39b26471f2301800ba9b6112905a14cc09ec2a10cfa7a54adf3b5568712703fdb1b5f2a2f0
+AUX psh-1.8.1-r3-defined-array.patch 295 SHA256 834afb894282cbdfd13a2c95ee490fa708178baac4e38eb5a50824db00a1a21b SHA512 69edf4cc81483ec6f9675d1f14b6a9d63a055691dc1f41a08e26b721d3b6081b881db5183df23ebc52459e849ee1ca0f6f5c64c01231c305eef8183145f520c9 WHIRLPOOL 77da55faf2c6d2a548f7c5145704f942ba5134e7e89d7122a786e8f4c05e5c960b30d6e3d80ea88a0b623534053dd8ae95f158876d7cf1b1d41b732c73081e90
+DIST psh-1.8.1-r3.tar.gz 120552 SHA256 c8414c4381a6a715800a7b59c39276d1f19087bf2e0b6a9b950af4feaf7701a8 SHA512 01e9def98fa89f347ad540cbb0584773de4b7e11595432d7b8e1f1a563725004b898a5fd30f39b01de661ac6ec3274b6cfecdbd7f0bec3fe175119493163ca9a WHIRLPOOL 378aba28927a747560fa8cf6513900f93e473d1d2e5bcff4e87ed2d8c9c84daab1a86887aa2d774d3616ef541e23607bc59123d4adc584b66fbdfa4e75fa4d2d
+EBUILD psh-1.8.1-r3.ebuild 838 SHA256 9fb17b2c349b211d25a9c6e67d854a8c29de0a76cc7c1a5bc80ee7042e32c7ca SHA512 a3e15fdaeec4947b4653d739955d04b67892008b280e436e289083f990ea199192a544e3039c317558a476e306d9e079f3477714d68703ec0d3709fe1f882b4b WHIRLPOOL 4686049fb143b08abe5eed05cc8487f139b0cb5796cae9f0359d5ff091baeaa3add95f12099583f48bbc4307ded8de569fe7e3fa6661a587086fc4adcce2874d
+MISC ChangeLog 2796 SHA256 5f1d0274556fc9ef2bff24d3c3e089875c6e96b4f35709de8a65c24f03d60170 SHA512 507a7426b7399654931b569f2f707dc010855755ac57f68e84be67dd76a854d37d1d03ebee6239b6f9e5dccfb8dd24ea249c5326134aa12ad364c0c072c8cec9 WHIRLPOOL d1a3cc58442ccfc5e163ea422e5651127306c77887da544f6c5ecd0f353453fe7f67c3d0f1e7672ee69d4428988d6420c393068f0eea03a1bfb56590222efc36
+MISC ChangeLog-2015 4200 SHA256 a9d5237444ddec7e3108e48782956b1b73f598ea2ecbb28ce2f9b79e3ca68d55 SHA512 0ee8b3a6d50c3b37104b95aa75d0e16540f579f4e396f61c897aaafe745ec1378c04316a3c0d14c2ce808a16c246f2be3d820820f75f5a733d34aa3b5bf8b915 WHIRLPOOL 299b8bbace1d4d4b04e9c68e78a2d5230b8b03519db243e4d307fe61c88bded26bdc5140c40cb11af40926ce1000fbea1d289179b888a4afa2cd8d77c52f7db0
+MISC metadata.xml 353 SHA256 0aa4192aac2227d43587c0e76f7f82b53401846552053c133196a363ff01128e SHA512 b2ed73c0d0a472cc69fed198e266467016b134909c3f8a3d625cb36c409e698c99c30d287999eacc04cc6185a5874861ce0f548b4569a769711c1183fc2c4a3e WHIRLPOOL 28c1cb469d5ec885d4af36d31a74b8c1fcf7e17d413203bde9821075277eb8541b549995a62b2e02affface234e97d03b9b269d577edfb3542220ba58e4540cd
diff --git a/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch b/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch
new file mode 100644
index 000000000000..13c497064ee1
--- /dev/null
+++ b/app-shells/psh/files/psh-1.8.1-r3-array-ref-deprecated.patch
@@ -0,0 +1,37 @@
+From fec038344e05b4fe1b369a979b9ab224343297dd Mon Sep 17 00:00:00 2001
+From: r <rocky@gnu.org>
+Date: Sun, 25 Mar 2012 18:17:45 -0400
+Subject: [PATCH] Get rid of 'Using an array as a reference is deprecated in
+ Psh/StrategyBunch.pm'
+
+---
+ lib/Psh/Strategy/Darwin_apps.pm | 2 +-
+ lib/Psh/Strategy/Executable.pm | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/lib/Psh/Strategy/Darwin_apps.pm b/lib/Psh/Strategy/Darwin_apps.pm
+index cbcbb1d..8c4879e 100644
+--- a/lib/Psh/Strategy/Darwin_apps.pm
++++ b/lib/Psh/Strategy/Darwin_apps.pm
+@@ -44,7 +44,7 @@ sub _recursive_search {
+
+
+ sub applies {
+- my $com= @{$_[2]}->[0];
++ my $com= $_[2]->[0];
+ if ($com !~ m/$Psh::which_regexp/) { return ''; }
+ my $path=$ENV{APP_PATH}||'/Applications';
+ my @path= split /:/, $path;
+diff --git a/lib/Psh/Strategy/Executable.pm b/lib/Psh/Strategy/Executable.pm
+index 7d09119..7767082 100644
+--- a/lib/Psh/Strategy/Executable.pm
++++ b/lib/Psh/Strategy/Executable.pm
+@@ -24,7 +24,7 @@ sub runs_before {
+ }
+
+ sub applies {
+- my $com= @{$_[2]}->[0];
++ my $com= $_[2]->[0];
+ my $executable= Psh::Util::which($com);
+ return $executable if defined $executable;
+ return '';
diff --git a/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch b/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch
new file mode 100644
index 000000000000..660ca34daf44
--- /dev/null
+++ b/app-shells/psh/files/psh-1.8.1-r3-defined-array.patch
@@ -0,0 +1,11 @@
+--- a/lib/Psh.pm 2007-07-21 16:40:44.000000000 +1200
++++ b/lib/Psh.pm 2015-07-18 05:30:29.840928282 +1200
+@@ -367,7 +367,7 @@
+
+ sub defined_and_nonempty
+ {
+- if (!defined(@_)) { return 0; }
++ if (!@_) { return 0; }
+ if (scalar(@_) == 0) { return 0; }
+
+ if (scalar(@_) == 1) {
diff --git a/app-shells/psh/metadata.xml b/app-shells/psh/metadata.xml
new file mode 100644
index 000000000000..5fa8eb473430
--- /dev/null
+++ b/app-shells/psh/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>perl@gentoo.org</email>
+ <name>Gentoo Perl Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">gnp/psh</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-shells/psh/psh-1.8.1-r3.ebuild b/app-shells/psh/psh-1.8.1-r3.ebuild
new file mode 100644
index 000000000000..00fa615132c7
--- /dev/null
+++ b/app-shells/psh/psh-1.8.1-r3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+DIST_EXAMPLES=( "examples/*" )
+
+inherit perl-module
+
+DESCRIPTION="Combines the interactive nature of a Unix shell with the power of Perl"
+HOMEPAGE="https://gnp.github.io/psh/"
+SRC_URI="https://github.com/gnp/psh/archive/${P}.tar.gz -> ${PF}.tar.gz"
+S="${WORKDIR}/${PN}-${P}" # github--
+
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="readline"
+
+RDEPEND="
+ readline? (
+ dev-perl/Term-ReadLine-Gnu
+ dev-perl/TermReadKey
+ )
+"
+DEPEND="${RDEPEND}
+ virtual/perl-ExtUtils-MakeMaker
+"
+
+myinst="SITEPREFIX=${D}/usr"
+
+PATCHES=(
+ "${FILESDIR}/${PF}-defined-array.patch"
+ "${FILESDIR}/${PF}-array-ref-deprecated.patch"
+)
+
+src_install() {
+ perl-module_src_install
+ docompress -x "/usr/share/doc/${PF}/pod"
+ docinto pod/
+ dodoc -r doc/*
+}