From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- app-misc/realpath/Manifest | 11 ++++ .../realpath/files/realpath-1.14-no-po4a.patch | 12 ++++ app-misc/realpath/files/realpath-1.15-prefix.patch | 39 ++++++++++++ app-misc/realpath/files/realpath-1.16-nonls.patch | 29 +++++++++ app-misc/realpath/files/realpath-1.17-build.patch | 43 +++++++++++++ app-misc/realpath/metadata.xml | 12 ++++ app-misc/realpath/realpath-1.17.ebuild | 68 ++++++++++++++++++++ app-misc/realpath/realpath-1.18.ebuild | 74 ++++++++++++++++++++++ 8 files changed, 288 insertions(+) create mode 100644 app-misc/realpath/Manifest create mode 100644 app-misc/realpath/files/realpath-1.14-no-po4a.patch create mode 100644 app-misc/realpath/files/realpath-1.15-prefix.patch create mode 100644 app-misc/realpath/files/realpath-1.16-nonls.patch create mode 100644 app-misc/realpath/files/realpath-1.17-build.patch create mode 100644 app-misc/realpath/metadata.xml create mode 100644 app-misc/realpath/realpath-1.17.ebuild create mode 100644 app-misc/realpath/realpath-1.18.ebuild (limited to 'app-misc/realpath') diff --git a/app-misc/realpath/Manifest b/app-misc/realpath/Manifest new file mode 100644 index 000000000000..6c501928b72f --- /dev/null +++ b/app-misc/realpath/Manifest @@ -0,0 +1,11 @@ +AUX realpath-1.14-no-po4a.patch 288 BLAKE2B cafe4fc0db905b3f9af36b256e392196bc37f1ec01150007590e022a231e38bbe89439419ccbbcb04c23154a2d43159bbe1e81d229d41fa0a8f24365f5849158 SHA512 db19ebcab412ee5b4229657e9745a76b8ad83bff70e3f8f6b939edfbff3aa389436d10fd7d8641bf6a0747630c2d1afcc3ff0d6fe2faeec55e8d4f4a79596cc6 +AUX realpath-1.15-prefix.patch 1443 BLAKE2B 3c62720d908dcb7ab29291e4029dd1923c2114649cc1c115e097e72193a4e9c1734a596434383b67b186796e605323f579e47c5f80ef9138f7556c9b9b965f70 SHA512 0e4980d60a4fff42823443ee9b8e9ef49a4f34ed031a3b01849f2d87b893f7205a4b7de2d6e090770aa2a3f7a31aab8f47d4f99c79d02d03fd5105001fdbcc5a +AUX realpath-1.16-nonls.patch 685 BLAKE2B 84e67f77ef5263e860dd74b665377279b81853b9a9bff7266e2902673f6d86344ad79b3cbfcb42454a536879d696d32c86b3b895a478f13f8385900c1f931a47 SHA512 b27e44c1313e2c0dd0dfed719c373a3fc6f907a44cd1a9457c03bf1d83ce55b2aafefae84d2053f358e7dfe99dd7e4274137082c64c748e34680f324fe676719 +AUX realpath-1.17-build.patch 1161 BLAKE2B cd5821e86f048bae80b224b8db2322170e40638fcbe2d4582a2f21ef6a5218a576528446422d8363ca2e6b4a7cf209de9ff355ab229a683382d095436a22845a SHA512 507df6759deaf43c7973c8d9bb1faeffc22003308cd2fc4f73270eac9ba347e605093f55110b5c86170597eba4f2c80ea7d15b5ccab4b3d0b75dcef09203c09f +DIST realpath_1.17.tar.gz 17800 BLAKE2B f2df9d9f3c73aaf6b4240518cc8ff361b97fa60c9493fa0148de6f14ad18dfa2ef05557932dec95a8b734b5d78881f0e239be41cba7bdaf4e353c092093ada3d SHA512 d4f8105e9256b140918dfa400eaac07bec9c29bced7284ab2a3a96282b13b59dca32ab0af38836dfe89dd4e3bf8b038ef4cf61a96d19951f46ac13264ceeec96 +DIST realpath_1.17_i386.deb 16372 BLAKE2B c8d7c2eb410c8c8129d6847d7cfe13265136fedcb51eb4bdaf62dda0dace1b9c0383445c1f407b404085306d6deff1a196b26cb7bb68b225710054b6bea582fe SHA512 15704a27f3f140c4d69411bfd9c319e3205e7b70cccefdc5bec94ad10d6b6c6ad948c2fa51cf2ed69c8884928ba6dcb83a865185f3b010dc6eb343c2125c2118 +DIST realpath_1.18.tar.gz 17618 BLAKE2B c42cbade8022a0aaafbf012c5f4db899bdadac6d06743a64fa0cf58c0533e9574fe1389939d296986fc1307362399753f58650d9029bf240fc6dc980c17a59f4 SHA512 98daa53b7a6d4b40ea3ff9ea89b7cb97782dd53f031e41a228a5aa8d2a41ae7920cbc1e2213f568098496e5c25da1381f08fb939f8668733a3c391f744fd16ed +DIST realpath_1.18_i386.deb 16426 BLAKE2B 934d4d61bda3ce069959f3cf818b8d0b206c95ef458487f12c8afa59014dc141dcdf0ebd18a9540dd3104358139ce7f9317aabd8027dca6883f55905cc198d83 SHA512 fb2062041f8089a5ff07f76a9833e9d8bbe9560d72d4d5803c9524aeb782f9f4a135921b9984432ccfa361edc785a0f33785377ddf031a07ed316861a00a6f37 +EBUILD realpath-1.17.ebuild 1922 BLAKE2B 47b234acc39bbe0d97ae1f540d6ceded6a4c7e41b192148b9579820ae5e28f6a60c78a71b33d0d711b52d338ae8c986d97d25d3e5d99cc5883c46f0056391b2b SHA512 579835cba0c03d19591f319471876b16e077b15a1992a58ff264fcc74d77633d889c04c6979a457300ea453b8053b102a415ad50af33aa019aaf9fae858af2a9 +EBUILD realpath-1.18.ebuild 1945 BLAKE2B 6e721f5da530f526de29477622142ea5cba0bf7b3ec9f6613887ff2de9eb12ddc101aae1209d5ba1336b71ac83db6fa183bcad924bf1bacf2ef9e8b56d729a79 SHA512 62490cc44d6c749d6e541ca5696bef17185c38453e24180ab992a16f2ff7000db492ee15309593dc27394ea7ed8e14e3d9ddaa65764b6c824e5124e4921d7ca0 +MISC metadata.xml 437 BLAKE2B 57ad5c49f2a37e30ac6d2f4e4a169f3fca789aa45169d0b9acfb16ab2bdf714c0b2c32cc2c609dc96e6ba516991b667884714d4bb7fb74b9fb519ae3d4b32c23 SHA512 db21930053e4af656fc8043dd5f60b8a78010aacb019435076db21c201fe0bafb4e742e347c430026991ff32819cb30c9e17819a302dc927c2b513301b5d06a1 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 + #include + #include +-#include + #include + +-#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 @@ + + + + + shell-tools@gentoo.org + Gentoo Shell Tools Project + + + The realpath utility finds the canonicalized absolute pathname of its + arguments in a similar way to readlink -f. + + 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 +} -- cgit v1.2.3