[22251] trunk/dports/sysutils/FDclone

source_changes at macosforge.org source_changes at macosforge.org
Fri Feb 23 21:53:26 PST 2007


Revision: 22251
          http://trac.macosforge.org/projects/macports/changeset/22251
Author:   takanori at macports.org
Date:     2007-02-23 21:53:25 -0800 (Fri, 23 Feb 2007)

Log Message:
-----------
Link against MacPorts' ncurses.
Remove unnecessary patch files.

Modified Paths:
--------------
    trunk/dports/sysutils/FDclone/Portfile

Removed Paths:
-------------
    trunk/dports/sysutils/FDclone/files/patch-kanji.c
    trunk/dports/sysutils/FDclone/files/patch-log.c

Modified: trunk/dports/sysutils/FDclone/Portfile
===================================================================
--- trunk/dports/sysutils/FDclone/Portfile	2007-02-24 05:42:10 UTC (rev 22250)
+++ trunk/dports/sysutils/FDclone/Portfile	2007-02-24 05:53:25 UTC (rev 22251)
@@ -3,6 +3,7 @@
 PortSystem	1.0
 name		FDclone
 version		2.09c
+revision	1
 categories	sysutils shells
 maintainers	takanori at macports.org
 description	File & Directory Maintenance Tool
@@ -16,6 +17,8 @@
 		sha1 2de8e5d3c36e05c8e77ba4d83187ec4cfff5654e \
 		rmd160 cea4859c6af718e2833a1aa27c04d1e3c0e0aa44
 
+depends_lib	port:ncurses
+
 set editor	""
 set pager	""
 
@@ -42,7 +45,7 @@
 		}
 }
 
-build.args	CONFDIR=${prefix}/etc PREFIX=${prefix}
+build.args	CONFDIR=${prefix}/etc PREFIX=${prefix} CPPFLAGS="-I${prefix}/include/ncurses" LDFLAGS="-L${prefix}/lib -lncurses"
 
 destroot.args	BUILD=${destroot} PREFIX=${prefix}
 post-destroot	{

Deleted: trunk/dports/sysutils/FDclone/files/patch-kanji.c
===================================================================
--- trunk/dports/sysutils/FDclone/files/patch-kanji.c	2007-02-24 05:42:10 UTC (rev 22250)
+++ trunk/dports/sysutils/FDclone/files/patch-kanji.c	2007-02-24 05:53:25 UTC (rev 22251)
@@ -1,18 +0,0 @@
---- kanji.c~	2006-08-08 00:00:00.000000000 +0900
-+++ kanji.c	2006-08-09 13:04:03.000000000 +0900
-@@ -730,11 +730,13 @@
- 	else strcatdelim2(path, unitblpath, file);
- 
- 	if ((fd = Xopen(path, O_BINARY | O_RDONLY, 0666)) < 0) fd = -1;
--	else if (!unitblent && sureread(fd, buf, 2) != 2) {
-+	else if (!unitblent) {
-+	  if (sureread(fd, buf, 2) != 2) {
- 		Xclose(fd);
- 		fd = -1;
-+	  }
-+	  else unitblent = getword(buf, 0);
- 	}
--	else unitblent = getword(buf, 0);
- 
- 	return(fd);
- }

Deleted: trunk/dports/sysutils/FDclone/files/patch-log.c
===================================================================
--- trunk/dports/sysutils/FDclone/files/patch-log.c	2007-02-24 05:42:10 UTC (rev 22250)
+++ trunk/dports/sysutils/FDclone/files/patch-log.c	2007-02-24 05:53:25 UTC (rev 22251)
@@ -1,34 +0,0 @@
---- ../old/FD-2.08f/log.c	Tue Aug  8 00:00:00 2006
-+++ ./log.c	Wed Aug  9 00:43:17 2006
-@@ -109,6 +109,7 @@
- char *buf;
- int len;
- {
-+	static int logging = 0;
- 	lockbuf_t *lck;
- 	struct tm *tm;
- 	char hbuf[MAXLOGLEN + 1];
-@@ -116,6 +117,7 @@
- 	u_char uc;
- 	int n;
- 
-+	if (logging) return;
- #ifndef	NOUID
- 	if (!getuid()) {
- 		n = rootloglevel;
-@@ -126,6 +128,7 @@
- 	n = loglevel;
- 	if (!n || n < lvl) return;
- 
-+	logging = 1;
- 	if ((lck = openlogfile())) {
- 		t = time(NULL);
- 		tm = localtime(&t);
-@@ -148,6 +151,7 @@
- 		VOID_C write(lck -> fd, &uc, sizeof(uc));
- 		lockclose(lck);
- 	}
-+	logging = 0;
- #ifndef	NOSYSLOG
- 	if (usesyslog && syslogged >= 0) {
- 		if (!syslogged) {

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070223/7e66a4bc/attachment.html


More information about the macports-changes mailing list