summaryrefslogtreecommitdiff
path: root/editors/elvis/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-22 16:23:57 +0000
committerjlam <jlam@pkgsrc.org>2008-04-22 16:23:57 +0000
commit7f4de2f919a2013baee70f5be7334483ba1ad35d (patch)
tree69219d41c20a99bd621ba995cedc85cd021cbb2f /editors/elvis/Makefile
parent8c191c0ed941f0ad91b6aa2d36ecca1b257a621c (diff)
downloadpkgsrc-7f4de2f919a2013baee70f5be7334483ba1ad35d.tar.gz
Restructure the following packages:
editors/elvis editors/elvis-x11 The latter is now just editors/elvis built with a specific set of options. Changes include: + Add options.mk that supports a new "x11" option. + Remove Makefile.common and move all logic into elvis/Makefile and elvis/options.mk. + Rename PLIST.common to PLIST as there are no PLIST differences between elvis and elvis-x11. + Modify patch-ab to add a --sysconfdir option to the configure script and fix the parsing of --with-x* options so that --with-xft isn't ignored. + Modify patch-ac to handle SYSCONFDIR in Makefile.in passed in from the configure script. + Remove the unnecessary substitution for PKG_SYSCONFDIR now that the configure script and Makefile.in directly support --sysconfdir. + Include termcap.buildlink3.mk to properly deal with termcap/curses issues (elvis needs termcap). + Add full DESTDIR support. + Set HOMEPAGE to the correct URL. + Bump the PKGREVISION for elvis and elvis-x11 to 6. Both packages now track and use the same PKGREVISION number.
Diffstat (limited to 'editors/elvis/Makefile')
-rw-r--r--editors/elvis/Makefile44
1 files changed, 36 insertions, 8 deletions
diff --git a/editors/elvis/Makefile b/editors/elvis/Makefile
index 29bb750d265..4b656310c4a 100644
--- a/editors/elvis/Makefile
+++ b/editors/elvis/Makefile
@@ -1,14 +1,42 @@
-# $NetBSD: Makefile,v 1.4 2007/02/22 19:26:25 wiz Exp $
-#
+# $NetBSD: Makefile,v 1.5 2008/04/22 16:23:57 jlam Exp $
-.include "./Makefile.common"
+# This section contains variables that might be overridden.
+PKGNAME?= ${PKGNAME_BASE}
+COMMENT?= vi clone with regex-search, hex-edit, HTML/LaTeX preview
-PKGNAME= elvis-2.2.0
-PKGREVISION= 2
-COMMENT= Vi clone with regex search, hex editing, HTML and TeX previewing
+# Normal package Makefile contents follow.
+DISTNAME= elvis-2.2_0
+PKGNAME_BASE= ${DISTNAME:S/_/./}
+PKGREVISION= 6
+CATEGORIES= editors
+MASTER_SITES= ftp://ftp.cs.pdx.edu/pub/elvis/
-CONFLICTS+= elvis-x11[0-9]*
+CONFLICTS+= elvis-[0-9]*
+CONFLICTS+= elvis-x11-[0-9]*
-CONFIGURE_ARGS+= --with-x=no
+MAINTAINER= airhead@users.sourceforge.net
+HOMEPAGE= http://elvis.the-little-red-haired-girl.org/
+PKG_DESTDIR_SUPPORT= user-destdir
+
+.include "options.mk"
+
+HAS_CONFIGURE= yes
+CONFIGURE_ARGS+= --verbose
+CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --docdir=${PREFIX:Q}/share/doc/elvis
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+
+PKG_SYSCONFSUBDIR?= elvis
+CONF_FILES= ${PREFIX}/share/elvis/elvis.rc \
+ ${PKG_SYSCONFDIR}/elvis.rc
+
+INSTALL_MAKE_FLAGS+= PREFIX=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+= BINDIR=${DESTDIR}${PREFIX}/bin
+INSTALL_MAKE_FLAGS+= DATADIR=${DESTDIR}${PREFIX}/share/elvis
+INSTALL_MAKE_FLAGS+= DOCDIR=${DESTDIR}${PREFIX}/share/doc/elvis
+
+INSTALLATION_DIRS= ${PKGMANDIR}/man1
+
+.include "../../mk/termcap.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"