summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-10-20 00:54:21 +0000
committerJeroen Roovers <jer@gentoo.org>2010-10-20 00:54:21 +0000
commit9450049d51b509800a1bc41ec545f8441af5b343 (patch)
tree7bb5e343838eb1073b1cfb752a0d3b50099f6c7d /app-misc/mvcase
parentVersion bump (diff)
downloadhistorical-9450049d51b509800a1bc41ec545f8441af5b343.tar.gz
historical-9450049d51b509800a1bc41ec545f8441af5b343.tar.bz2
historical-9450049d51b509800a1bc41ec545f8441af5b343.zip
Fix compiler warnings. Set RDEPEND. Respect LDFLAGS (bug #338157), CC, CFLAGS.
Package-Manager: portage-2.2_rc98/cvs/Linux i686
Diffstat (limited to 'app-misc/mvcase')
-rw-r--r--app-misc/mvcase/ChangeLog11
-rw-r--r--app-misc/mvcase/Manifest4
-rw-r--r--app-misc/mvcase/files/mvcase-0.1-includes.patch25
-rw-r--r--app-misc/mvcase/mvcase-0.1-r1.ebuild33
4 files changed, 70 insertions, 3 deletions
diff --git a/app-misc/mvcase/ChangeLog b/app-misc/mvcase/ChangeLog
index 95d38b3b584b..b0e25d6c7ed9 100644
--- a/app-misc/mvcase/ChangeLog
+++ b/app-misc/mvcase/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-misc/mvcase
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/mvcase/ChangeLog,v 1.9 2008/03/29 13:50:25 coldwind Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mvcase/ChangeLog,v 1.10 2010/10/20 00:54:21 jer Exp $
+
+*mvcase-0.1-r1 (20 Oct 2010)
+
+ 20 Oct 2010; Jeroen Roovers <jer@gentoo.org> +mvcase-0.1-r1.ebuild,
+ +files/mvcase-0.1-includes.patch:
+ Fix compiler warnings. Set RDEPEND. Respect LDFLAGS (bug #338157), CC,
+ CFLAGS.
29 Mar 2008; Santiago M. Mola <coldwind@gentoo.org> mvcase-0.1.ebuild:
amd64 stable
diff --git a/app-misc/mvcase/Manifest b/app-misc/mvcase/Manifest
index 11b4772d03b6..7224ad1bb447 100644
--- a/app-misc/mvcase/Manifest
+++ b/app-misc/mvcase/Manifest
@@ -1,4 +1,6 @@
+AUX mvcase-0.1-includes.patch 526 RMD160 29d5dd6344aac6001a3969d12f1a371d857c18be SHA1 48d72798fd811647857b5a17b95539f6c4f96598 SHA256 8e0b504f110241e1ff82dcf8d3475831d7df5a83324d6ab1f89b9b39abf0c5ef
DIST mvcase-0.1.tar.gz 9467 RMD160 0d2786b9b2a280fc6d7c39aa74ed3c6ffdafb5a1 SHA1 9fd8a0b1c8883d8db1c5eb6b33b3bda8205fdc06 SHA256 87eb97918fde3a740f4c4968b7fb737909de124ea89774d34c0201bd107c93a2
+EBUILD mvcase-0.1-r1.ebuild 788 RMD160 1b40f2f51966405d9b02c1c0f991be0bdd7c256f SHA1 95ef6f1579e57f2b8578f008e5b125fdc5f3cc57 SHA256 b044e30259d94dec15290cba3fc04b1b1335afeaa1e0a8e8ea446508a865519c
EBUILD mvcase-0.1.ebuild 615 RMD160 bf0bb4baf236b5a82d24d8933929dd1dbeb68aea SHA1 ab515119d9c3e728727fa78c3b5d4c3db6712d56 SHA256 6ca267c3e0becf08050569b2eb73aa98727b1dd1aabeec48180caf3812e597fb
-MISC ChangeLog 960 RMD160 78955b10076c30e368191b47f0f3b4ddc483c298 SHA1 b39c24afb70eb4f9131dc7272d01f72662e1ae7e SHA256 6307db229b8e137c66890e139b88a32a447c7edf64cd7727d1aeba7bfe8398ae
+MISC ChangeLog 1176 RMD160 858528353b58a5a649e29161a4bcf3e7d9e245d7 SHA1 e7857299475ebf6185dfa5cf611a1ef35b978264 SHA256 3f9bb4d54329bbfc6cac7a071b0e4e94a43b7f292ba5e779357d663c1294b131
MISC metadata.xml 236 RMD160 92f49f8275e75caf57b88a3172d5204eaa4e33ae SHA1 dd1a8550a514e55ab0ed6190ab4794bb090994f8 SHA256 56075995f83836ae824c7cb01931b98d6745f6d5a7764299c8262e801486b829
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 <stdio.h>
++#include <stdlib.h> /* exit() free() realloc() */
++#include <string.h> /* strlen() strcpy() */
++#include <strings.h> /* rindex() */
++#include <ctype.h> /* tolower() toupper() */
+ #include <shhopt.h>
+
+ #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/mvcase-0.1-r1.ebuild b/app-misc/mvcase/mvcase-0.1-r1.ebuild
new file mode 100644
index 000000000000..955740187417
--- /dev/null
+++ b/app-misc/mvcase/mvcase-0.1-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/mvcase/mvcase-0.1-r1.ebuild,v 1.1 2010/10/20 00:54:20 jer Exp $
+
+EAPI="2"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A modified version of mv, used to convert filenames to lower/upper case"
+HOMEPAGE="http://www.ibiblio.org/pub/Linux/utils/file"
+SRC_URI="http://www.ibiblio.org/pub/Linux/utils/file/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+DEPEND="dev-libs/shhopt"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-includes.patch
+}
+
+src_compile() {
+ emake COMPILE=$(tc-getCC) CFLAGS="${CFLAGS} ${LDFLAGS}" || die
+}
+
+src_install() {
+ dobin mvcase || die
+ doman mvcase.1
+ dodoc INSTALL
+}