diff options
Diffstat (limited to 'app-misc/realpath')
-rw-r--r-- | app-misc/realpath/Manifest | 13 | ||||
-rw-r--r-- | app-misc/realpath/files/realpath-1.14-no-po4a.patch | 12 | ||||
-rw-r--r-- | app-misc/realpath/files/realpath-1.15-prefix.patch | 39 | ||||
-rw-r--r-- | app-misc/realpath/files/realpath-1.16-nonls.patch | 29 | ||||
-rw-r--r-- | app-misc/realpath/files/realpath-1.17-build.patch | 43 | ||||
-rw-r--r-- | app-misc/realpath/metadata.xml | 12 | ||||
-rw-r--r-- | app-misc/realpath/realpath-1.17.ebuild | 68 | ||||
-rw-r--r-- | app-misc/realpath/realpath-1.18.ebuild | 74 |
8 files changed, 290 insertions, 0 deletions
diff --git a/app-misc/realpath/Manifest b/app-misc/realpath/Manifest new file mode 100644 index 000000000000..7597051223bc --- /dev/null +++ b/app-misc/realpath/Manifest @@ -0,0 +1,13 @@ +AUX realpath-1.14-no-po4a.patch 288 SHA256 5fc4321c8e6a3906366d198d309768de026b628ec320bf4c00c137f9fa6eeacc SHA512 db19ebcab412ee5b4229657e9745a76b8ad83bff70e3f8f6b939edfbff3aa389436d10fd7d8641bf6a0747630c2d1afcc3ff0d6fe2faeec55e8d4f4a79596cc6 WHIRLPOOL 4a8d3601634ac14587e9f488d6e65c86117ccfe315d9bb7d8725b837a6fbfd4a18401ed75bd174dd592d6d1f5a41a7280803b7799f5bc8facfd9fd402a44377e +AUX realpath-1.15-prefix.patch 1443 SHA256 df01fbc26743f1d25715589827aed7e1c68444ce596225f2aca571a75029cf27 SHA512 0e4980d60a4fff42823443ee9b8e9ef49a4f34ed031a3b01849f2d87b893f7205a4b7de2d6e090770aa2a3f7a31aab8f47d4f99c79d02d03fd5105001fdbcc5a WHIRLPOOL 0500647d494cddc3ef1cf0effb295a0a189756d726898dd3ef00813f39d3788b417952817d9fe3e6cf517254044648f3bd4cfd8a1e5b52fbeef7b609066b9e31 +AUX realpath-1.16-nonls.patch 685 SHA256 ea9c3bf075d932a6d1c3e92f31050a1272cd5f2135f079bac17788acb417ffbe SHA512 b27e44c1313e2c0dd0dfed719c373a3fc6f907a44cd1a9457c03bf1d83ce55b2aafefae84d2053f358e7dfe99dd7e4274137082c64c748e34680f324fe676719 WHIRLPOOL 65c256617e7a28b33565d0f18842326484393fdeacaab7c9927e53234ce4cc8cb65171ea6280e2dde4997d0d6095c47fbd6f6ccab02ebaecf09342406880dd1c +AUX realpath-1.17-build.patch 1161 SHA256 f9a46d1009db90fec82e6f49f730fb9b5f9284fbc2cda9be40759d47ac69ea3d SHA512 507df6759deaf43c7973c8d9bb1faeffc22003308cd2fc4f73270eac9ba347e605093f55110b5c86170597eba4f2c80ea7d15b5ccab4b3d0b75dcef09203c09f WHIRLPOOL 639bfbfa02309778cba1e229900d2281f680584077672ce03a6d58094f58367375dd66b71eb9aea9dd3ce3d57f68fae171ae6a3456fc320376ebabea94f7fb83 +DIST realpath_1.17.tar.gz 17800 SHA256 214962d9c6e5a0a446d9cf3368bd1ab6cf2c209fbce1fe52e852763e70da984b SHA512 d4f8105e9256b140918dfa400eaac07bec9c29bced7284ab2a3a96282b13b59dca32ab0af38836dfe89dd4e3bf8b038ef4cf61a96d19951f46ac13264ceeec96 WHIRLPOOL a0b96eb70e5aa27fd76d1f4635de950c1adcac8ce3b2a9414fcd54df5df2b01818f3641b3fc049650a05373ffb45dad2a918bfe949fb057592338d9320b9f0a5 +DIST realpath_1.17_i386.deb 16372 SHA256 07f47353d2552aec26c679c32b2335302cd1fe54e5c1a290ec4b708fd1b0d104 SHA512 15704a27f3f140c4d69411bfd9c319e3205e7b70cccefdc5bec94ad10d6b6c6ad948c2fa51cf2ed69c8884928ba6dcb83a865185f3b010dc6eb343c2125c2118 WHIRLPOOL abf52c219d3b4f8a186bec4549d9e50f933924ea4676298b12c8da3373e3eb82dac301729153cb8ea427d5321ce4500c2872d55c9c83602abaf04392a1a8bbe1 +DIST realpath_1.18.tar.gz 17618 SHA256 e085f617874ef34453be553a2900c15969d78836ce6476b1c6382a69ea4f75de SHA512 98daa53b7a6d4b40ea3ff9ea89b7cb97782dd53f031e41a228a5aa8d2a41ae7920cbc1e2213f568098496e5c25da1381f08fb939f8668733a3c391f744fd16ed WHIRLPOOL c643e4098eb5474956cc4d1ada9a2676b3a494ece47fb2f298cc1a5aa1457d4b494476f65c55f131e4dd309a2ed12224f53071cc5e0863a9cc59b45137ec2526 +DIST realpath_1.18_i386.deb 16426 SHA256 e9b2103ed8b8041ea6c02e587242b18a4f4b4d4ee6d8c990b4969af1d688d1fd SHA512 fb2062041f8089a5ff07f76a9833e9d8bbe9560d72d4d5803c9524aeb782f9f4a135921b9984432ccfa361edc785a0f33785377ddf031a07ed316861a00a6f37 WHIRLPOOL e22ca8a14c1e329c8576001b325a96bf110eda8f82b368ee1bff7da35a68805a4fe19174f5518d6fd614f5c2df5c939b6316e4898e2f4ad75fd465413444fc13 +EBUILD realpath-1.17.ebuild 1922 SHA256 1578ca062559a73fd5ec1835fcb96f453b66d82375fb1198ed0aed7f76a1f3ea SHA512 579835cba0c03d19591f319471876b16e077b15a1992a58ff264fcc74d77633d889c04c6979a457300ea453b8053b102a415ad50af33aa019aaf9fae858af2a9 WHIRLPOOL feb981960ce8c5fb232d896581cdd84a724bab945bc44fbeb4d70dbac5be00a33c2154efdfcdf892b18f65ecb0c52cb019b2144adb4b51a0634452c315c088a4 +EBUILD realpath-1.18.ebuild 1945 SHA256 5385c05f63ccdf82c18feed07315135b997d866ec8825b1e97fc03a4f077de0f SHA512 62490cc44d6c749d6e541ca5696bef17185c38453e24180ab992a16f2ff7000db492ee15309593dc27394ea7ed8e14e3d9ddaa65764b6c824e5124e4921d7ca0 WHIRLPOOL 1b8e70563656a3dbea254cfe6bb5aeb6608930b636d95e8e2acf92cc58c9e817e00683591733565f28200b22dc17d1320822213fb09675bac5f5d95c00e96f38 +MISC ChangeLog 2829 SHA256 24ff85b7c97a62160efaeaca806c8ae4904fb1642b51afa4a5f154ca034a03dc SHA512 9edcc863abdd095357e40157b81215c50021691c1d7dd86b8a4c26ee6df05d3ca9b19839639dc562f99ba26f14c9bab622925ab100054fcf54c5578e44c5f5af WHIRLPOOL 96b386a43f4903263167b2311bacd99955667cf673193ae0d7b51b2e70bb0cc524a7fde471cee1b556fb29646672a9e2334d6cd06866427d5a04107152fc9092 +MISC ChangeLog-2015 11453 SHA256 f14a1ac211c30270a950c3983ace4e08b01da00e16b8312c5f5a43e128b4eb16 SHA512 949605dde2afda87221939e3f2d531a9c619ad12dbad64a0e7a9d18c4ad55ad2c024db1a5c76668e1979d66c4d6d5830bc67963d84a7adbc693e0945db9d0c46 WHIRLPOOL 6f5f578ca6b9ee79821d68ab56c884408c8357e69aaff612e2a72a18778a89573364136ef287a3714b70e8b41999f3ced47b5c826eef5063a784103cfd04bcbe +MISC metadata.xml 437 SHA256 fe1856ea2979fb4e68509388fb1c0d5624741cd4f030aaaa8e63d46054dcf970 SHA512 db21930053e4af656fc8043dd5f60b8a78010aacb019435076db21c201fe0bafb4e742e347c430026991ff32819cb30c9e17819a302dc927c2b513301b5d06a1 WHIRLPOOL d7032d728a26f80621d9eb49d858d3799a43a6b21cac58d5142f8c37ad59dc15a284f9cf89a6c34ef0ba8eb254ec0066abba5d6423f60c9cfa551839a2035aa7 diff --git a/app-misc/realpath/files/realpath-1.14-no-po4a.patch b/app-misc/realpath/files/realpath-1.14-no-po4a.patch new file mode 100644 index 000000000000..cfa780553646 --- /dev/null +++ b/app-misc/realpath/files/realpath-1.14-no-po4a.patch @@ -0,0 +1,12 @@ +Don't require po4a at build time. +http://bugs.gentoo.org/269905 + +--- realpath-1.14-orig/po/Makefile 2009-02-22 12:56:47.000000000 +0100 ++++ realpath-1.14/po/Makefile 2009-05-19 23:45:26.000000000 +0200 +@@ -4,5 +4,5 @@ + # + + ALL_TARGET= +-SUBDIRS=bin man ++SUBDIRS=bin + include ../common.mk diff --git a/app-misc/realpath/files/realpath-1.15-prefix.patch b/app-misc/realpath/files/realpath-1.15-prefix.patch new file mode 100644 index 000000000000..f9534641382f --- /dev/null +++ b/app-misc/realpath/files/realpath-1.15-prefix.patch @@ -0,0 +1,39 @@ +diff --git a/common.mk b/common.mk +index 2443a40..0a342ee 100644 +--- a/common.mk ++++ b/common.mk +@@ -8,17 +8,19 @@ override TOPDIR := $(dir $(call getCurrentMakefileName)) + + override PACKAGE := realpath + +-PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH) ++#PATH := /usr/bin:/usr/sbin:/bin:/sbin:$(PATH) ++ ++SHELL := @GENTOO_PORTAGE_EPREFIX@/bin/bash + + # build abstraction +-install_file := install -p -o root -g root -m 644 +-install_script := install -p -o root -g root -m 755 +-install_dir := install -d -o root -g root -m 755 ++install_file := install -p -m 644 ++install_script := install -p -m 755 ++install_dir := install -d -m 755 + install_link := ln -sf + compress := gzip -9f + +-prefix := /usr +-etcdir := /etc/$(PACKAGE) ++prefix := @GENTOO_PORTAGE_EPREFIX@/usr ++etcdir := @GENTOO_PORTAGE_EPREFIX@/etc/$(PACKAGE) + bindir := $(prefix)/bin + sbindir := $(prefix)/sbin + mandir := $(prefix)/share/man +@@ -33,7 +35,7 @@ webdocrootdir := /var/www + webcgidir := $(prefix)/lib/cgi-bin + applicationsdir := $(prefix)/share/applications + +-PERL := /usr/bin/perl ++PERL := @GENTOO_PORTAGE_EPREFIX@/usr/bin/perl + CC ?= gcc + CFLAGS += -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"' + LDFLAGS += diff --git a/app-misc/realpath/files/realpath-1.16-nonls.patch b/app-misc/realpath/files/realpath-1.16-nonls.patch new file mode 100644 index 000000000000..d758d03ff89b --- /dev/null +++ b/app-misc/realpath/files/realpath-1.16-nonls.patch @@ -0,0 +1,29 @@ + src/realpath.c | 6 +----- + 1 files changed, 1 insertions(+), 5 deletions(-) + +diff --git a/src/realpath.c b/src/realpath.c +index 76fc909..e2cf86f 100644 +--- a/src/realpath.c ++++ b/src/realpath.c +@@ -23,10 +23,9 @@ + #include <errno.h> + #include <getopt.h> + #include <stdarg.h> +-#include <libintl.h> + #include <locale.h> + +-#define _(String) gettext (String) ++#define _(String) (String) + + static char *stripdir(char * dir, char *buf, int maxlen); + +@@ -116,9 +115,6 @@ int main(int argc, char **argv) { + + myname = ( p = strchr(argv[0], '/') ) ? p+1 : argv[0]; + +- setlocale(LC_ALL, ""); +- bindtextdomain(PACKAGE, LOCALEDIR); +- textdomain(PACKAGE); + + + parse_options(argc, argv); diff --git a/app-misc/realpath/files/realpath-1.17-build.patch b/app-misc/realpath/files/realpath-1.17-build.patch new file mode 100644 index 000000000000..c4a8b3dfc9b9 --- /dev/null +++ b/app-misc/realpath/files/realpath-1.17-build.patch @@ -0,0 +1,43 @@ +--- a/common.mk ++++ b/common.mk +@@ -33,16 +33,9 @@ + applicationsdir := $(prefix)/share/applications + + PERL := /usr/bin/perl +-CC := gcc +-CFLAGS += $(CPPFLAGS) -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -Werror -g -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"' +-LIBS := +- +-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +- CFLAGS += -O0 +-else +- CFLAGS += -O2 +-endif +- ++CC ?= gcc ++CFLAGS += $(CPPFLAGS) -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes -DVERSION='"$(VERSION)"' -DPACKAGE='"$(PACKAGE)"' -DLOCALEDIR='"$(nlsdir)"' ++LIBS += + + # determine our version number + ifndef VERSION +@@ -58,9 +51,6 @@ + unexport CDPATH ENV + + ifdef DESTDIR +- ifneq ($(DESTDIR),$(abspath $(DESTDIR))) +- $(error DESTDIR "$(DESTDIR)" is not an absolute path) +- endif + override ddirshort := DESTDIR + export ddirshort + endif +@@ -108,7 +99,9 @@ + esac; fi; + endef + else +- msg := : ++ define msg ++ : ++ endef + endif + + msgprefix := *$(subst * ,*,$(wordlist 1,$(MAKELEVEL),* * * * * * * * * * * * * * * * * *)) diff --git a/app-misc/realpath/metadata.xml b/app-misc/realpath/metadata.xml new file mode 100644 index 000000000000..b701221db411 --- /dev/null +++ b/app-misc/realpath/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>shell-tools@gentoo.org</email> + <name>Gentoo Shell Tools Project</name> + </maintainer> + <longdescription lang="en"> + The realpath utility finds the canonicalized absolute pathname of its + arguments in a similar way to readlink -f. +</longdescription> +</pkgmetadata> diff --git a/app-misc/realpath/realpath-1.17.ebuild b/app-misc/realpath/realpath-1.17.ebuild new file mode 100644 index 000000000000..633e771f4bdf --- /dev/null +++ b/app-misc/realpath/realpath-1.17.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 +inherit eutils toolchain-funcs flag-o-matic multilib prefix + +DESCRIPTION="Return the canonicalized absolute pathname" +HOMEPAGE="http://packages.debian.org/unstable/utils/realpath" +SRC_URI=" + mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz + nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls" + +RDEPEND="!sys-freebsd/freebsd-bin + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + elibc_mintlib? ( virtual/libiconv )" + +src_unpack() { + unpack ${PN}_${PV}.tar.gz + + if use nls; then + # Unpack the .deb file, in order to get the preprocessed man page + # translations. This way we avoid a dependency on app-text/po4a. + mkdir deb + cd deb + unpack ${PN}_${PV}_i386.deb + unpack ./data.tar.gz + fi +} + +src_prepare() { + use nls || epatch "${FILESDIR}"/${PN}-1.16-nonls.patch + epatch "${FILESDIR}"/${PN}-1.17-build.patch + epatch "${FILESDIR}"/${PN}-1.14-no-po4a.patch + epatch "${FILESDIR}"/${PN}-1.15-prefix.patch + eprefixify common.mk +} + +src_compile() { + tc-export CC + use nls && use !elibc_glibc && append-libs -lintl + [[ ${CHOST} == *-mint* ]] && append-libs "-liconv" + + local subdir + for subdir in src man $(usex nls po ''); do + emake MAKE_VERBOSE=yes VERSION="${PV}" -C ${subdir} + done +} + +src_install() { + emake VERSION="${PV}" SUBDIRS="src man $(usex nls po '')" \ + DESTDIR="${D}" install + newdoc debian/changelog ChangeLog.debian + + if use nls; then + local dir + for dir in "${WORKDIR}"/deb/usr/share/man/*; do + [ -f "${dir}"/man1/realpath.1 ] || continue + newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1 + done + fi +} diff --git a/app-misc/realpath/realpath-1.18.ebuild b/app-misc/realpath/realpath-1.18.ebuild new file mode 100644 index 000000000000..34ce163c9a33 --- /dev/null +++ b/app-misc/realpath/realpath-1.18.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils flag-o-matic multilib prefix toolchain-funcs + +DESCRIPTION="Return the canonicalized absolute pathname" +HOMEPAGE="http://packages.debian.org/unstable/utils/realpath" +SRC_URI=" + mirror://debian/pool/main/r/${PN}/${PN}_${PV}.tar.gz + nls? ( mirror://debian/pool/main/r/${PN}/${PN}_${PV}_i386.deb )" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="nls" + +RDEPEND=" + !sys-freebsd/freebsd-bin + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + nls? ( sys-devel/gettext ) + elibc_mintlib? ( virtual/libiconv )" + +src_unpack() { + unpack ${PN}_${PV}.tar.gz + + if use nls; then + # Unpack the .deb file, in order to get the preprocessed man page + # translations. This way we avoid a dependency on app-text/po4a. + mkdir deb + cd deb + unpack ${PN}_${PV}_i386.deb + unpack ./data.tar.gz + fi +} + +src_prepare() { + use nls || epatch "${FILESDIR}"/${PN}-1.16-nonls.patch + epatch \ + "${FILESDIR}"/${PN}-1.17-build.patch \ + "${FILESDIR}"/${PN}-1.14-no-po4a.patch \ + "${FILESDIR}"/${PN}-1.15-prefix.patch + eprefixify common.mk +} + +src_compile() { + tc-export CC + use nls && use !elibc_glibc && append-libs -lintl + [[ ${CHOST} == *-mint* ]] && append-libs "-liconv" + + local subdir + for subdir in src man $(usex nls po ''); do + emake MAKE_VERBOSE=yes VERSION="${PV}" -C ${subdir} + done +} + +src_install() { + emake \ + VERSION="${PV}" \ + SUBDIRS="src man $(usex nls po '')" \ + DESTDIR="${D}" \ + install + newdoc debian/changelog ChangeLog.debian + + if use nls; then + local dir + for dir in "${WORKDIR}"/deb/usr/share/man/*; do + [ -f "${dir}"/man1/realpath.1 ] || continue + newman "${dir}"/man1/realpath.1 realpath.${dir##*/}.1 + done + fi +} |