Bug 184430 - devel/libgetline stage update
Summary: devel/libgetline stage update
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 11:20 UTC by Rodrigo OSORIO
Modified: 2013-12-02 14:31 UTC (History)
0 users

See Also:


Attachments
getline.diff (2.36 KB, patch)
2013-12-02 11:20 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 11:20:00 UTC
	Fix stage
	Add license
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-12-02 11:20:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->sunpoet

sunpoet@ wants this submitter's PRs (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2013-12-02 14:28:00 UTC
Author: sunpoet
Date: Mon Dec  2 14:27:51 2013
New Revision: 335491
URL: http://svnweb.freebsd.org/changeset/ports/335491

Log:
  - Add LICENSE
  - Support STAGEDIR
  - While I'm here:
    - Do not use hardcoded DISTNAME and WRKSRC
    - Remove leading indefinite article from COMMENT
  
  PR:		ports/184430
  Submitted by:	Rodrigo Osorio <rodrigo@bebik.net> (maintainer)

Modified:
  head/devel/libgetline/Makefile
  head/devel/libgetline/files/patch-ab   (contents, props changed)
  head/devel/libgetline/pkg-plist   (contents, props changed)

Modified: head/devel/libgetline/Makefile
==============================================================================
--- head/devel/libgetline/Makefile	Mon Dec  2 14:05:57 2013	(r335490)
+++ head/devel/libgetline/Makefile	Mon Dec  2 14:27:51 2013	(r335491)
@@ -5,16 +5,27 @@ PORTNAME=	getline
 PORTVERSION=	3.9
 CATEGORIES=	devel
 MASTER_SITES=	http://rodrigo.osorio.free.fr/freebsd/distfiles/
-DISTNAME=	${PORTNAME}-39-src
+DISTNAME=	${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}-src
 
 MAINTAINER=	rodrigo@bebik.net
-COMMENT=	A small, portable, and easy to use command line library
+COMMENT=	Small, portable, and easy to use command line library
 
-MAN3=		getline.3
+LICENSE=	BSD
 
-WRKSRC=		${WRKDIR}/getline-39
+WRKSRC=		${WRKDIR}/${DISTNAME:S/-src//}
 
 USE_LDCONFIG=	yes
 
-NO_STAGE=	yes
+MAKE_ENV+=	AR="${AR}"
+MAKE_ENV+=	CC="${CC}"
+MAKE_ENV+=	INSTALL="${INSTALL}"
+MAKE_ENV+=	LN="${LN}"
+MAKE_ENV+=	RANLIB="${RANLIB}"
+MAKE_ENV+=	INST_INCDIR="${STAGEDIR}${PREFIX}/include"
+MAKE_ENV+=	INST_LIBDIR="${STAGEDIR}${PREFIX}/lib"
+MAKE_ENV+=	INST_MANDIR="${STAGEDIR}${PREFIX}/man"
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetline.so
+
 .include <bsd.port.mk>

Modified: head/devel/libgetline/files/patch-ab
==============================================================================
--- head/devel/libgetline/files/patch-ab	Mon Dec  2 14:05:57 2013	(r335490)
+++ head/devel/libgetline/files/patch-ab	Mon Dec  2 14:27:51 2013	(r335491)
@@ -1,25 +1,12 @@
---- Makefile	Thu Jan 15 02:16:07 1998
-+++ Makefile	Sun Mar 21 18:04:04 1999
-@@ -1,46 +1,54 @@
+--- Makefile
++++ Makefile
+@@ -1,46 +1,43 @@
 -#CC     = gcc
 -#CFLAGS = -Wall -DPOSIX
 +PREFIX?=		/usr/local
- 
--CC= cc
--CFLAGS = -v -DPOSIX
-+AR=				/usr/bin/ar
-+CC=				/usr/bin/cc
-+INSTALL=		/usr/bin/install
-+LN=				/bin/ln
-+RANLIB=			/usr/bin/ranlib
-+
 +CFLAGS=			-DPOSIX -O
 +LDFLAGS=
 +
-+INST_INCDIR=	$(PREFIX)/include
-+INST_LIBDIR=	$(PREFIX)/lib
-+INST_MANDIR=	$(PREFIX)/man
-+
 +SHLIB_VERSION	= 1
 +SHLIB_CFLAGS	= -fpic -DPIC
 +SHLIB_LDFLAGS	= -shared
@@ -32,6 +19,9 @@
 +testgl: libgetline.a testgl.o
 +	$(CC) $(LDFLAGS) $(CFLAGS) -o testgl testgl.o -L$(INST_MANDIR) -lgetline
  
+-CC= cc
+-CFLAGS = -v -DPOSIX
+-
 -LDFLAGS= 
 -INSTALL_PATH=/usr/local
 -INST_LIBDIR=$(INSTALL_PATH)/lib
@@ -84,7 +74,7 @@
 +	[ -d $(INST_LIBDIR) ] || $(INSTALL) -d $(INST_LIBDIR)
 +	$(INSTALL) -c -g bin -o bin -m 644 libgetline.a libgetline.so.1 \
 +		$(INST_LIBDIR)
-+	$(LN) -fs $(INST_LIBDIR)/libgetline.so.$(SHLIB_VERSION) \
++	$(LN) -fs libgetline.so.$(SHLIB_VERSION) \
 +		 $(INST_LIBDIR)/libgetline.so
 +	[ -d $(INST_MANDIR)/man3 ] || $(INSTALL) -d $(INST_MANDIR)/man3
 +	$(INSTALL) -c -g bin -o bin -m 644 getline.3 $(INST_MANDIR)/man3

Modified: head/devel/libgetline/pkg-plist
==============================================================================
--- head/devel/libgetline/pkg-plist	Mon Dec  2 14:05:57 2013	(r335490)
+++ head/devel/libgetline/pkg-plist	Mon Dec  2 14:27:51 2013	(r335491)
@@ -2,3 +2,4 @@ include/getline.h
 lib/libgetline.a
 lib/libgetline.so
 lib/libgetline.so.1
+man/man3/getline.3.gz
_______________________________________________
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"
Comment 3 Po-Chuan Hsieh freebsd_committer freebsd_triage 2013-12-02 14:31:05 UTC
State Changed
From-To: open->closed

Committed. Thanks!