Bug 184436 - devel/libedit stage fix
Summary: devel/libedit stage fix
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-02 15:40 UTC by Rodrigo OSORIO
Modified: 2013-12-02 19:00 UTC (History)
0 users

See Also:


Attachments
libedit.diff (6.16 KB, patch)
2013-12-02 15:40 UTC, Rodrigo OSORIO
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo OSORIO 2013-12-02 15:40:00 UTC
	Fix stage
	Add license
	strip binary
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2013-12-02 18:33:55 UTC
Responsible Changed
From-To: gnats-admin->freebsd-ports-bugs

rescue from 'pending'.  (I can't see why it was there.)
Comment 2 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-12-02 18:45:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

I'll take it.
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-12-02 18:53:18 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-12-02 18:53:22 UTC
Author: sunpoet
Date: Mon Dec  2 18:53:10 2013
New Revision: 335531
URL: http://svnweb.freebsd.org/changeset/ports/335531

Log:
  - Add LICENSE
  - Strip shared library
  - Support STAGEDIR
  - While I'm here, use REINPLACE_CMD instead of patch file
  
  PR:		ports/184436
  Submitted by:	Rodrigo Osorio <rodrigo@bebik.net>

Modified:
  head/devel/libedit/Makefile   (contents, props changed)
  head/devel/libedit/pkg-plist   (contents, props changed)

Modified: head/devel/libedit/Makefile
==============================================================================
--- head/devel/libedit/Makefile	Mon Dec  2 18:36:22 2013	(r335530)
+++ head/devel/libedit/Makefile	Mon Dec  2 18:53:10 2013	(r335531)
@@ -11,36 +11,20 @@ MASTER_SITES=	ftp://ftp.astron.com/pub/l
 MAINTAINER=	rodrigo@bebik.net
 COMMENT=	Command line editing library
 
+LICENSE=	BSD
+
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
 
-MAN3=		editline.3
-MAN5=		editrc.5
-MLINKS=		editline.3 el_init.3 \
-		editline.3 el_end.3 \
-		editline.3 el_reset.3 \
-		editline.3 el_gets.3 \
-		editline.3 el_getc.3 \
-		editline.3 el_push.3 \
-		editline.3 el_parse.3 \
-		editline.3 el_set.3 \
-		editline.3 el_get.3 \
-		editline.3 el_source.3 \
-		editline.3 el_resize.3 \
-		editline.3 el_line.3 \
-		editline.3 el_insertstr.3 \
-		editline.3 el_deletestr.3 \
-		editline.3 history_init.3 \
-		editline.3 history_end.3 \
-		editline.3 history.3
-MANCOMPRESSED=	no
-
-NO_STAGE=	yes
 post-extract:
 	${MV} ${WRKSRC}/readline ${WRKSRC}/editline
 
 post-patch:
+	@${REINPLACE_CMD} -e 's|$$(PREFIX)|$$(DESTDIR)&|g' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's|CFLAGS -O|CFLAGS|g ; \
 		 s|MAJOR="2"|MAJOR="6"|g' ${WRKSRC}/configure
 
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libedit.so
+
 .include <bsd.port.mk>

Modified: head/devel/libedit/pkg-plist
==============================================================================
--- head/devel/libedit/pkg-plist	Mon Dec  2 18:36:22 2013	(r335530)
+++ head/devel/libedit/pkg-plist	Mon Dec  2 18:53:10 2013	(r335531)
@@ -2,6 +2,25 @@ include/editline/history.h
 include/editline/readline.h
 include/histedit.h
 lib/libedit.a
-lib/libedit.so.6
 lib/libedit.so
+lib/libedit.so.6
+man/man3/editline.3.gz
+man/man3/el_deletestr.3.gz
+man/man3/el_end.3.gz
+man/man3/el_get.3.gz
+man/man3/el_getc.3.gz
+man/man3/el_gets.3.gz
+man/man3/el_init.3.gz
+man/man3/el_insertstr.3.gz
+man/man3/el_line.3.gz
+man/man3/el_parse.3.gz
+man/man3/el_push.3.gz
+man/man3/el_reset.3.gz
+man/man3/el_resize.3.gz
+man/man3/el_set.3.gz
+man/man3/el_source.3.gz
+man/man3/history.3.gz
+man/man3/history_end.3.gz
+man/man3/history_init.3.gz
+man/man5/editrc.5.gz
 @dirrm include/editline
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"