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
commit996a233b0455609944e1ed9e188d26a770084069 (patch)
tree631cc61190026c4f2b7a8120675eeb3bd32320d1 /app-misc/mvcase
parentVersion bump (diff)
downloadgentoo-2-996a233b0455609944e1ed9e188d26a770084069.tar.gz
gentoo-2-996a233b0455609944e1ed9e188d26a770084069.tar.bz2
gentoo-2-996a233b0455609944e1ed9e188d26a770084069.zip
Fix compiler warnings. Set RDEPEND. Respect LDFLAGS (bug #338157), CC, CFLAGS.
(Portage version: 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/files/mvcase-0.1-includes.patch25
-rw-r--r--app-misc/mvcase/mvcase-0.1-r1.ebuild33
3 files changed, 67 insertions, 2 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/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
+}