diff --git a/editors/led/Makefile b/editors/led/Makefile index 4acab6dbc8fc..aaac78af564c 100644 --- a/editors/led/Makefile +++ b/editors/led/Makefile @@ -1,34 +1,37 @@ PORTNAME= led PORTVERSION= 2.0 PORTREVISION= 1 CATEGORIES= editors MASTER_SITES= SF/${PORTNAME}-editor/${PORTNAME}/${PORTVERSION} MAINTAINER= ports@FreeBSD.org COMMENT= Tiny text editor, with a number of useful programming features WWW= https://led-editor.sourceforge.net/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE +DEPRECATED= Last upstream release was in 2002 reconsider using editors/nano +EXPIRATION_DATE= 2024-01-16 + USES= ncurses perl5 GNU_CONFIGURE= yes MAKE_JOBS_UNSAFE= yes SUB_FILES= pkg-message .include .if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) CFLAGS+= -Wno-error=incompatible-function-pointer-types .endif post-patch: @${REINPLACE_CMD} -E 's,(bin|lib|data)dir),DESTDIR)$$(&,' \ ${WRKSRC}/Makefile.in post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/led \ ${STAGEDIR}${PREFIX}/lib/led/modules/perlapi.so .include diff --git a/editors/led/files/patch-src-modules-perlapi-Makefile b/editors/led/files/patch-src-modules-perlapi-Makefile index c3e4cc52bb53..445690b7d46f 100644 --- a/editors/led/files/patch-src-modules-perlapi-Makefile +++ b/editors/led/files/patch-src-modules-perlapi-Makefile @@ -1,11 +1,11 @@ ---- src/modules/perlapi/Makefile.orig Mon Mar 22 14:29:51 2004 -+++ src/modules/perlapi/Makefile Mon Mar 22 14:29:59 2004 -@@ -8,7 +8,7 @@ +--- src/modules/perlapi/Makefile.orig 2002-01-26 18:17:41 UTC ++++ src/modules/perlapi/Makefile +@@ -8,7 +8,7 @@ include ../Makefile.module include ../Makefile.module -CFLAGS+= `perl -MExtUtils::Embed -e ccopts` +CFLAGS+= `perl -MExtUtils::Embed -e ccopts` -fPIC XSUBPPDIR= `perl -MConfig -e 'print $$Config{privlib}'`/ExtUtils XSUBPP= $(XSUBPPDIR)/xsubpp diff --git a/editors/led/files/patch-src__file.c b/editors/led/files/patch-src__file.c index 4b57bb9153ef..e0fbb0dd6e5e 100644 --- a/editors/led/files/patch-src__file.c +++ b/editors/led/files/patch-src__file.c @@ -1,11 +1,11 @@ ---- src/file.c 2002/07/15 11:40:21 1.1 -+++ src/file.c 2002/07/15 11:42:31 -@@ -192,6 +192,8 @@ +--- src/file.c.orig 2002-02-16 16:41:11 UTC ++++ src/file.c +@@ -192,6 +192,8 @@ forcenl: putc('\r', fp); putc('\n', fp); } + fflush(fp); + fsync(fileno(fp)); return 0; } diff --git a/editors/led/files/patch-src__modules__perlapi__perlapi.c b/editors/led/files/patch-src__modules__perlapi__perlapi.c index 0804d6393d73..368973ffb58b 100644 --- a/editors/led/files/patch-src__modules__perlapi__perlapi.c +++ b/editors/led/files/patch-src__modules__perlapi__perlapi.c @@ -1,26 +1,26 @@ ---- ./src/modules/perlapi/perlapi.c.orig 2002-02-14 22:07:31.000000000 +0100 -+++ ./src/modules/perlapi/perlapi.c 2013-11-14 16:41:36.000000000 +0100 -@@ -36,6 +36,7 @@ +--- src/modules/perlapi/perlapi.c.orig 2002-02-14 21:07:31 UTC ++++ src/modules/perlapi/perlapi.c +@@ -36,6 +36,7 @@ static void xs_init() { /* extension module support */ static void xs_init() { char *file = __FILE__; + dTHX; newXS("DynaLoader::boot_DynaLoader", boot_DynaLoader, file); newXS("Led::bootstrap", boot_Led, file); -@@ -66,6 +67,7 @@ +@@ -66,6 +67,7 @@ int perlapi_init() { char *args[] = { "", "-e", "" }; char *bootargs[] = { "Led", 0 }; u_char *expath; + dTHX; /* add perl commands to the editor */ command_addf("perl_eval", input_allocsyms(1), perlapi_doeval); -@@ -124,6 +126,7 @@ +@@ -124,6 +126,7 @@ void perlapi_eval(u_char *string) { /* evaluate some perl */ void perlapi_eval(u_char *string) { SV *sv; + dTHX; sv = newSVpv(string, 0); perl_eval_sv(sv, G_DISCARD | G_NOARGS); diff --git a/editors/led/files/patch-src_color.c b/editors/led/files/patch-src_color.c index 033bf3e33c06..11ee201b01a6 100644 --- a/editors/led/files/patch-src_color.c +++ b/editors/led/files/patch-src_color.c @@ -1,10 +1,10 @@ ---- src/color.c.orig Mon Aug 23 17:16:34 2004 -+++ src/color.c Mon Aug 23 17:16:57 2004 -@@ -206,6 +206,7 @@ +--- src/color.c.orig 2002-03-02 05:19:00 UTC ++++ src/color.c +@@ -206,6 +206,7 @@ out: } } out: + ; } /* read in color configuration file */ diff --git a/editors/led/files/patch-src_complete.c b/editors/led/files/patch-src_complete.c index cc7b8b19baf0..0a1861d343b7 100644 --- a/editors/led/files/patch-src_complete.c +++ b/editors/led/files/patch-src_complete.c @@ -1,10 +1,10 @@ ---- src/complete.c.orig Mon Aug 23 17:17:13 2004 -+++ src/complete.c Mon Aug 23 17:17:24 2004 -@@ -183,6 +183,7 @@ +--- src/complete.c.orig 2002-02-16 16:41:11 UTC ++++ src/complete.c +@@ -183,6 +183,7 @@ next: sizeof(u_char *)); } next: + ; } comps[i] = NULL;