summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-05 16:51:40 +0000
committerjlam <jlam@pkgsrc.org>2008-03-05 16:51:40 +0000
commit3f19815cc5f4e64e0cef4029383ec9d46d174c93 (patch)
tree51fdec8e5cea790b30f7af3eda614f7c0b38d35e /time
parent3a9a5fdff858769244394789b68a5ee0358a8cbf (diff)
downloadpkgsrc-3f19815cc5f4e64e0cef4029383ec9d46d174c93.tar.gz
+ Remove patch-aa which only changed the directory into which the
package installs the config file at installation time. The simpler solution is to override sysconfdir via INSTALL_MAKE_FLAGS to point to the example files directory. + Instead of using custom termcap/curses detection/overriding logic in the package Makefile, simply allow termcap.buildlink3.mk (included indirectly via readline/buildlink3.mk) to do the right thing. Bump the PKGREVISION to 1. + Add full DESTDIR support. + Simplify the post-install target.
Diffstat (limited to 'time')
-rw-r--r--time/devtodo/Makefile26
-rw-r--r--time/devtodo/distinfo3
-rw-r--r--time/devtodo/patches/patch-aa14
3 files changed, 13 insertions, 30 deletions
diff --git a/time/devtodo/Makefile b/time/devtodo/Makefile
index 38c8783df8d..fa905a10861 100644
--- a/time/devtodo/Makefile
+++ b/time/devtodo/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2007/12/01 16:52:09 rillig Exp $
+# $NetBSD: Makefile,v 1.27 2008/03/05 16:51:40 jlam Exp $
DISTNAME= devtodo-0.1.20
+PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= http://swapoff.org/files/devtodo/
@@ -8,17 +9,18 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://swapoff.org/DevTodo
COMMENT= Display and manage a list of items that are outstanding
-USE_LANGUAGES= c c++
-USE_LIBTOOL= YES
-
-GNU_CONFIGURE= YES
-
-# We don't need curses, just termcap.
-CONFIGURE_ENV+= ac_cv_lib_curses_tputs=no
+PKG_DESTDIR_SUPPORT= user-destdir
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
USE_GNU_READLINE= # uses rl_startup_hook()
+GNU_CONFIGURE= yes
+
+EGDIR= ${PREFIX}/share/examples/devtodo
+INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
-CONTRIBFILES= changelog2html \
+post-install:
+.for CFILE in changelog2html \
changelog2todo \
tdrec \
todo-nodone-html.xslt \
@@ -27,11 +29,7 @@ CONTRIBFILES= changelog2html \
todo2pdf.README \
todo2pdf.sh \
todo2pdf.xslt
-
-post-install:
-.for CFILE in ${CONTRIBFILES}
- ${INSTALL_DATA} ${WRKSRC}/contrib/${CFILE} \
- ${PREFIX}/share/examples/devtodo
+ ${INSTALL_DATA} ${WRKSRC}/contrib/${CFILE} ${DESTDIR}${EGDIR}
.endfor
.include "../../devel/readline/buildlink3.mk"
diff --git a/time/devtodo/distinfo b/time/devtodo/distinfo
index e2c107bfc52..c87484c9186 100644
--- a/time/devtodo/distinfo
+++ b/time/devtodo/distinfo
@@ -1,8 +1,7 @@
-$NetBSD: distinfo,v 1.10 2007/12/01 16:52:09 rillig Exp $
+$NetBSD: distinfo,v 1.11 2008/03/05 16:51:40 jlam Exp $
SHA1 (devtodo-0.1.20.tar.gz) = 003067a12139d712dbb3706069e0950a93ecaaf4
RMD160 (devtodo-0.1.20.tar.gz) = 389201318faa5ff6d302bd5f8c8f8b094664b45c
Size (devtodo-0.1.20.tar.gz) = 390935 bytes
-SHA1 (patch-aa) = 3a3d0acf6bd102e73fe6f280f4d62d950ce66183
SHA1 (patch-ab) = 32844dec69a473020103c9fd3425c60042dadf35
SHA1 (patch-ae) = 5f5ffb9571e73656eecdd3cb6cf72e26c193847e
diff --git a/time/devtodo/patches/patch-aa b/time/devtodo/patches/patch-aa
deleted file mode 100644
index 49e9904dbf6..00000000000
--- a/time/devtodo/patches/patch-aa
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2003/12/28 15:40:14 zuntum Exp $
-
---- doc/Makefile.in.orig 2002-12-26 05:14:54.000000000 +0100
-+++ doc/Makefile.in
-@@ -260,7 +260,8 @@ uninstall-man: uninstall-man1
- install-data-local:
- mkdir -p $(DESTDIR)$(mandir)/man1
- cd $(DESTDIR)$(mandir)/man1; for i in $(manlinks); do $(LN_S) -f devtodo.1 $$i.1; done
-- test -f $(DESTDIR)$(sysconfdir)/todorc || ( mkdir -p $(DESTDIR)$(sysconfdir) ; $(INSTALL_DATA) todorc.example $(DESTDIR)$(sysconfdir)/todorc )
-+ ${BSD_INSTALL_DATA_DIR} ${prefix}/share/examples/devtodo
-+ ${BSD_INSTALL_DATA} todorc.example ${prefix}/share/examples/devtodo/todorc
-
- uninstall:
- rm -f $(addprefix $(DESTDIR)$(mandir)/man1/, $(addsuffix .1, $(manlinks) devtodo))