summaryrefslogtreecommitdiff
path: root/misc/gnome-dirs
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2003-02-05 16:55:24 +0000
committerjmmv <jmmv@pkgsrc.org>2003-02-05 16:55:24 +0000
commit93f6a97207ee60fe88f8da5bed2ac41eaf109f80 (patch)
tree8f2669fc72b89d376ff3d36baccc9852ce2da4b0 /misc/gnome-dirs
parentdde0be864beafd09b541ddc8964887ac613468c8 (diff)
downloadpkgsrc-93f6a97207ee60fe88f8da5bed2ac41eaf109f80.tar.gz
Use bsd.pkg.install.mk to register directories instead of a dynamic PLIST.
This fixes the gnome*-dirs breakage in last bulk build in a non-aggressive way (i.e., no need to update pkg_install to fix it). Bump version of gnome*-dirs to 1.1, because binary packages have changed. Patch provided by jlam, thanks!
Diffstat (limited to 'misc/gnome-dirs')
-rw-r--r--misc/gnome-dirs/Makefile.common28
-rw-r--r--misc/gnome-dirs/PLIST1
2 files changed, 6 insertions, 23 deletions
diff --git a/misc/gnome-dirs/Makefile.common b/misc/gnome-dirs/Makefile.common
index b684d47dec1..6c6c06068a9 100644
--- a/misc/gnome-dirs/Makefile.common
+++ b/misc/gnome-dirs/Makefile.common
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.common,v 1.2 2003/01/27 13:00:33 jmmv Exp $
+# $NetBSD: Makefile.common,v 1.3 2003/02/05 16:55:24 jmmv Exp $
#
# This Makefile contains all the logic needed to automatically generate
# PLIST's for the gnome*-dirs packages.
# It also installs all GTK/GNOME directories common to v1 and v2.
-GNOME_DIRS_VERSION= 1.0
+GNOME_DIRS_VERSION= 1.1
GNOME_DIRS_COMMON= share/gnome/apps
GNOME_DIRS_COMMON+= share/gnome/apps/Applications
@@ -34,26 +34,8 @@ GNOME_DIRS_COMMON+= share/gnome/help/lgpl/C/figures
.include "../../mk/bsd.prefs.mk"
_SORTED!= ${ECHO} ${GNOME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT}
-_REVERSE!= ${ECHO} ${GNOME_DIRS} | ${TR} -s ' \t' '\n' | ${SORT} -r
-PLIST_SRC= ${WRKDIR}/.PLIST_SRC
+USE_PKGINSTALL= yes
+MAKE_DIRS+= ${_SORTED:S/^/${PREFIX}\//}
-do-install:
-.for d in ${_SORTED}
- ${INSTALL_DATA_DIR} ${PREFIX}/$d
-.endfor
-.undef d
-
-post-install:
- @${RM} -f ${PLIST_SRC}
- @${TOUCH} ${PLIST_SRC}
-.for d in ${_SORTED}
- @${ECHO} "@exec \$${MKDIR} %D/$d" >> ${PLIST_SRC}
-.endfor
-.for d in ${_REVERSE}
- @${ECHO} "@unexec \$${RMDIR} %D/$d || \$${TRUE}" >> ${PLIST_SRC}
-.endfor
-.undef d
-
-.undef _SORTED
-.undef _REVERSE
+do-install: # nothing
diff --git a/misc/gnome-dirs/PLIST b/misc/gnome-dirs/PLIST
new file mode 100644
index 00000000000..8d8c93138b8
--- /dev/null
+++ b/misc/gnome-dirs/PLIST
@@ -0,0 +1 @@
+@comment $NetBSD: PLIST,v 1.1 2003/02/05 16:55:25 jmmv Exp $