[48425] trunk/dports/editors/ne
toby at macports.org
toby at macports.org
Sat Mar 21 10:51:02 PDT 2009
Revision: 48425
http://trac.macports.org/changeset/48425
Author: toby at macports.org
Date: 2009-03-21 10:51:00 -0700 (Sat, 21 Mar 2009)
Log Message:
-----------
ne 2.0.3
Modified Paths:
--------------
trunk/dports/editors/ne/Portfile
Added Paths:
-----------
trunk/dports/editors/ne/files/
trunk/dports/editors/ne/files/patch-src__makefile
Modified: trunk/dports/editors/ne/Portfile
===================================================================
--- trunk/dports/editors/ne/Portfile 2009-03-21 16:52:27 UTC (rev 48424)
+++ trunk/dports/editors/ne/Portfile 2009-03-21 17:51:00 UTC (rev 48425)
@@ -2,9 +2,9 @@
PortSystem 1.0
name ne
-version 1.42
+version 2.0.3
categories editors
-maintainers nomaintainer
+maintainers toby
description ne - nice editor
long_description \
ne is a free text editor that runs on (hopefully almost) any \
@@ -14,29 +14,40 @@
homepage http://ne.dsi.unimi.it/
master_sites ${homepage}
-checksums md5 1640268b2a425e0e59e3448af413a258
+checksums md5 16ed5c974adb8255a693f8a3b6e91071 \
+ sha1 9dd848041b9c719659182b2cf8b03b6753b99291 \
+ rmd160 4ee477a8bac1a2c47983d7cfc6f698ecac76d887
-patch {
- reinplace "s|/usr|${prefix}|" ${worksrcpath}/src/makefile
+patchfiles patch-src__makefile
+
+configure.cflags-append -Wno-pointer-sign
+configure {
+ reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/makefile
+ reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/src/makefile
+ reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/src/makefile
+ reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/src/makefile
}
-use_configure no
-
build.dir ${worksrcpath}/src
build.target
destroot {
xinstall -m 555 ${worksrcpath}/src/ne ${destroot}${prefix}/bin
+
+ xinstall -d ${destroot}${prefix}/lib/ne
+ file copy ${worksrcpath}/syntax ${destroot}${prefix}/lib/ne
+
xinstall -m 444 ${worksrcpath}/doc/ne.1 ${destroot}${prefix}/share/man/man1
- xinstall -d ${destroot}${prefix}/share/doc/ne
- xinstall -m 444 \
- ${worksrcpath}/CHANGES \
- ${worksrcpath}/COPYING \
- ${worksrcpath}/README \
- ${destroot}${prefix}/share/doc/ne
-
- foreach doc [glob -directory ${worksrcpath}/doc *] {
- xinstall -m 444 ${doc} ${destroot}${prefix}/share/doc/ne
- }
+ xinstall -d ${destroot}${prefix}/share/doc/ne
+ file copy ${worksrcpath}/doc/ne ${destroot}${prefix}/share/doc/ne
+ xinstall -m 444 \
+ ${worksrcpath}/doc/ne.pdf \
+ ${worksrcpath}/doc/ne.txt \
+ ${worksrcpath}/doc/default.keys \
+ ${worksrcpath}/doc/default.menus \
+ ${worksrcpath}/README \
+ ${worksrcpath}/COPYING \
+ ${worksrcpath}/CHANGES \
+ ${destroot}${prefix}/share/doc/ne
}
Added: trunk/dports/editors/ne/files/patch-src__makefile
===================================================================
--- trunk/dports/editors/ne/files/patch-src__makefile (rev 0)
+++ trunk/dports/editors/ne/files/patch-src__makefile 2009-03-21 17:51:00 UTC (rev 48425)
@@ -0,0 +1,27 @@
+--- src/makefile.orig 2009-03-21 10:25:20.000000000 -0700
++++ src/makefile 2009-03-21 10:47:09.000000000 -0700
+@@ -16,7 +16,7 @@
+ # files, ,etc.).
+ #
+
+-NE_GLOBAL_DIR = /usr/local/lib/ne
++NE_GLOBAL_DIR = __PREFIX__/lib/ne
+
+ PROGRAM = ne
+
+@@ -69,11 +69,14 @@
+ NE_DEBUG=
+ NE_TEST=
+
++CC=__CC__
++
+ ifeq ($(CC),gcc)
+ NO_SIGN=-Wno-pointer-sign
+ endif
+
+-CFLAGS=$(OPTS) $(NO_SIGN) $(if $(NE_POSIX),-D_POSIX_C_SOURCE=199506L,) $(if $(NE_NOWCHAR),-DNOWCHAR,) $(if $(NE_TEST),-DNE_TEST,) $(if $(NE_DEBUG),-g,-O3 -DNODEBUG) $(if $(NE_TERMCAP),-DTERMCAP,) $(if $(NE_ANSI),-DTERMCAP -DANSI,)
++CFLAGS=__CFLAGS__
++LDFLAGS=__LDFLAGS__
+ LIBS=$(if $(NE_TERMCAP)$(NE_ANSI),,-lcurses)
+
+ ne: $(OBJS) $(if $(NE_TERMCAP)$(NE_ANSI),$(TERMCAPOBJS),)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090321/1964ed0c/attachment.html>
More information about the macports-changes
mailing list