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/mvcase/Manifest | 5 ++++ app-misc/mvcase/files/mvcase-0.1-flags.patch | 25 +++++++++++++++++++ app-misc/mvcase/files/mvcase-0.1-includes.patch | 25 +++++++++++++++++++ app-misc/mvcase/metadata.xml | 5 ++++ app-misc/mvcase/mvcase-0.1-r2.ebuild | 32 +++++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 app-misc/mvcase/Manifest create mode 100644 app-misc/mvcase/files/mvcase-0.1-flags.patch create mode 100644 app-misc/mvcase/files/mvcase-0.1-includes.patch create mode 100644 app-misc/mvcase/metadata.xml create mode 100644 app-misc/mvcase/mvcase-0.1-r2.ebuild (limited to 'app-misc/mvcase') diff --git a/app-misc/mvcase/Manifest b/app-misc/mvcase/Manifest new file mode 100644 index 000000000000..bfd7964ec934 --- /dev/null +++ b/app-misc/mvcase/Manifest @@ -0,0 +1,5 @@ +AUX mvcase-0.1-flags.patch 531 BLAKE2B be56f4ebf49427f3d6202ca78bf76d40419055235bb85f0a0f3856928a8f62d68600da7daedcb8d32497e06ec66c723c51c93b36ce2d84049caf3330ffde3398 SHA512 1731eacbd22438e4e888750ba5550b5d95365e2f396e3a59326c86d3cd8c20dc7a46490fd116ade13e6191a86966ebb77df4a5a2e10fb2961f45a0f9664a4b77 +AUX mvcase-0.1-includes.patch 526 BLAKE2B 1ae38fd8c03a82694fd57c9af033443d3e0a09a794686ca87419167dfd16697addb57a2f73923a8435c88fd82c5555b0715bc541f2eb377aa9f2e6389b14d311 SHA512 1860cf88e66a4bc219546a87e337056f66a344d6ec400c21bf37c7d7d5b34fdddf3cf2ac7c05274f2c6f313ee7fd530240e1d2089e598b5154c8eb2c4dffa30f +DIST mvcase-0.1.tar.gz 9467 BLAKE2B 4f73908cb549af143582f2f046096b5ffc82bd68a7be9d599bcea159d2182a52d37b9afb7e6e5e3fcb2ad01fd647c3649dae56ed47258166884a20e81b00d40b SHA512 1b6030d51cd0da7bede43f1b528c2b2cc713b3c6ca0ccbb4931672185998957aad1b2e0e78a78148c412b6a36052076caca3606016ad1404e6028442dff8648c +EBUILD mvcase-0.1-r2.ebuild 640 BLAKE2B 12b93a85c6e13863e9d1ba3783ba78c5ab59f51d489c1589f365e9dbee47d2ad49a24260f3155940d9c9447a641cdb1fcc596e98a5e704ea47e3a6b86cb6151a SHA512 ddb49575202acdba13e9a1309ff2642c8c0d4f61b8f05a2ed6b7dfd2b041990584b067be6f552f6bf9a91ea7390c6534096e0e9042ef0677603db070df0867d3 +MISC metadata.xml 166 BLAKE2B c254f1fb642881aba57637be14fb0a89b10384f91a128feaec3a8c870d76efc2cbacb92caccc0dee2dd19a5ac5eaf8643080dafa05c4e2ac96a68568927e5afd SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 diff --git a/app-misc/mvcase/files/mvcase-0.1-flags.patch b/app-misc/mvcase/files/mvcase-0.1-flags.patch new file mode 100644 index 000000000000..e0a9e99160f8 --- /dev/null +++ b/app-misc/mvcase/files/mvcase-0.1-flags.patch @@ -0,0 +1,25 @@ +From: Julian Ospald +Date: Wed Nov 14 23:22:15 UTC 2012 +Subject: build system + + respect CC, CFLAGS and LDFLAGS + +--- mvcase-0.1/Makefile ++++ mvcase-0.1/Makefile +@@ -6,14 +6,13 @@ + MANPATH=/usr/man + COMPILE=gcc + ROFF=groff +-CFLAGS= +-CLIBS=-lshhopt ++LIBS=-lshhopt + INSTALL=install + + all: mvcase mvcase.1.gz + + mvcase: mvcase.c +- $(COMPILE) $(CFLAGS) mvcase.c -o mvcase $(CLIBS) ++ $(CC) $(CFLAGS) mvcase.c -o mvcase $(LDFLAGS) $(LIBS) + + mvcase.1.gz: mvcase.1 + $(ROFF) -man -Tascii mvcase.1 | gzip > mvcase.1.gz diff --git a/app-misc/mvcase/files/mvcase-0.1-includes.patch b/app-misc/mvcase/files/mvcase-0.1-includes.patch new file mode 100644 index 000000000000..095f07a06780 --- /dev/null +++ b/app-misc/mvcase/files/mvcase-0.1-includes.patch @@ -0,0 +1,25 @@ +* Fix compiler warnings. +* Remove unused variable. + +--- a/mvcase.c ++++ b/mvcase.c +@@ -17,6 +17,10 @@ + */ + + #include ++#include /* exit() free() realloc() */ ++#include /* strlen() strcpy() */ ++#include /* rindex() */ ++#include /* tolower() toupper() */ + #include + + #define VERSION_INT 0 +@@ -45,7 +45,7 @@ + + int main (int argc, char **argv) + { +- int i,j,k; ++ int i,j; + int static flag_upper = 0; + int static flag_lower = 0; + int static flag_path = 0; diff --git a/app-misc/mvcase/metadata.xml b/app-misc/mvcase/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/app-misc/mvcase/metadata.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app-misc/mvcase/mvcase-0.1-r2.ebuild b/app-misc/mvcase/mvcase-0.1-r2.ebuild new file mode 100644 index 000000000000..870ed73f8977 --- /dev/null +++ b/app-misc/mvcase/mvcase-0.1-r2.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="A modified version of mv, used to convert filenames to lower/upper case" +HOMEPAGE="https://www.ibiblio.org/pub/Linux/utils/file" +SRC_URI="https://www.ibiblio.org/pub/Linux/utils/file/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc x86" + +DEPEND="dev-libs/shhopt" +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-includes.patch" + "${FILESDIR}/${P}-flags.patch" +) + +src_compile() { + emake CC=$(tc-getCC) +} + +src_install() { + dobin "${PN}" + doman "${PN}.1" + einstalldocs +} -- cgit v1.2.3