ports/100686: [PATCH] devel/dprog: install emacs files, take maintainership

Stanislav Sedov ssedov at mbsd.msk.ru
Fri Jul 21 19:40:21 UTC 2006


>Number:         100686
>Category:       ports
>Synopsis:       [PATCH] devel/dprog: install emacs files, take maintainership
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 21 19:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #7: Sun Jun 18 20:51:36 MSD 2006
>Description:
- Optionally install emacs files
- Take maintainership

Added file(s):
- pkg-plist

>How-To-Repeat:
>Fix:

--- dprog-0.3.1_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/dprog/Makefile /var/tmp/dprog/Makefile
--- /usr/ports/devel/dprog/Makefile	Tue Apr  6 05:31:20 2004
+++ /var/tmp/dprog/Makefile	Fri Jul 21 23:27:17 2006
@@ -8,10 +8,11 @@
 
 PORTNAME=	dprog
 PORTVERSION=	0.3.1
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://www.daimi.au.dk/~mailund/dprog/download/
 
-MAINTAINER=	ports at FreeBSD.org
+MAINTAINER=	ssedov at mbsd.msk.ru
 COMMENT=	A language for specifying dynamic programming algorithms
 
 LIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt
@@ -20,6 +21,20 @@
 CONFIGURE_ENV=	CPPFLAGS="${CXXFLAGS} -I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib"
 
-PLIST_FILES=	bin/dprog include/cxx_dprog.hh lib/libcxx_dprog.a
+OPTIONS=	EMACS "Install emacs syntax files" on
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if !defined(WITHOUT_EMACS)
+PLIST_SUB+=	EMACS=""
+.else
+PLIST_SUB+=	EMACS="@comment "
+.endif
+
+post-install:
+.if !defined(WITHOUT_EMACS)
+	@${MKDIR} ${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/elisp/*.el ${DATADIR}
+.endif
+
+.include <bsd.port.post.mk>
diff -ruN --exclude=CVS /usr/ports/devel/dprog/pkg-plist /var/tmp/dprog/pkg-plist
--- /usr/ports/devel/dprog/pkg-plist	Thu Jan  1 03:00:00 1970
+++ /var/tmp/dprog/pkg-plist	Fri Jul 21 23:27:50 2006
@@ -0,0 +1,8 @@
+bin/dprog
+include/cxx_dprog.hh
+lib/libcxx_dprog.a
+%%EMACS%%%%DATADIR%%/dprog-constants.el
+%%EMACS%%%%DATADIR%%/dprog-font-lock.el
+%%EMACS%%%%DATADIR%%/dprog-indent.el
+%%EMACS%%%%DATADIR%%/dprog.el
+%%EMACS%%@dirrmtry %%DATADIR%%
--- dprog-0.3.1_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list