diff options
author | hira <hira@pkgsrc.org> | 2008-09-20 14:14:47 +0000 |
---|---|---|
committer | hira <hira@pkgsrc.org> | 2008-09-20 14:14:47 +0000 |
commit | c37c0642ee54da33b7e1fb5fa9ea590c14f4a559 (patch) | |
tree | 9f5fb5a0dfc9014932c8baac6d6d7898dc093671 /misc | |
parent | ca0b5dc686d382fc6423ae682355b2a94677c240 (diff) | |
download | pkgsrc-c37c0642ee54da33b7e1fb5fa9ea590c14f4a559.tar.gz |
Install *.desktop files to correct path.
This fixes PR pkg/39589. Bump PKGREVISION.
Diffstat (limited to 'misc')
-rw-r--r-- | misc/openoffice2/Makefile | 23 | ||||
-rw-r--r-- | misc/openoffice2/PLIST | 15 |
2 files changed, 28 insertions, 10 deletions
diff --git a/misc/openoffice2/Makefile b/misc/openoffice2/Makefile index 18936bab88b..5c4e3818995 100644 --- a/misc/openoffice2/Makefile +++ b/misc/openoffice2/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.49 2008/09/06 20:54:33 wiz Exp $ +# $NetBSD: Makefile,v 1.50 2008/09/20 14:14:47 hira Exp $ # OO_VER= 2.4.1 -PKGREVISION= 2 +PKGREVISION= 3 DISTNAME= openoffice-${OO_VER} PKGNAME= openoffice2-${OO_VER} CATEGORIES= misc @@ -37,6 +37,7 @@ CONFIGURE_DIRS= config_office GCC_REQD+= 3.4 USE_LANGUAGES+= c c++ +USE_DIRS+= xdg-1.1 USE_TOOLS+= bash gmake imake perl pkg-config tar PTHREAD_OPTS+= require PTHREAD_AUTO_VARS= yes @@ -110,7 +111,8 @@ CONFIGURE_ARGS+= --with-lang=${OO_LANGS:Q} UNLIMIT_RESOURCES+= datasize OO_RELEASE= OpenOffice.org${OO_VER} -PLIST_SRC+= ${WRKDIR}/.PLIST_SRC +PLIST_SRC= ${PKGDIR}/PLIST +PLIST_SRC+= ${WRKDIR}/PLIST MESSAGE_SUBST+= OO_RELEASE=${OO_RELEASE} INSTALLATION_DIRS= bin ${OO_RELEASE} @@ -136,6 +138,9 @@ post-build: tar xpfk $$f; \ done; \ done + cd ${WRKDIR} && \ + rm -fr xdg && \ + mv opt/${OO_UNXNAME}/share/xdg . cd ${WRKDIR}${OO_PKGROOT} && \ chmod ${SHAREMODE} program/hid.lst program/testtoolrc ${ECHO} "#!${SH}" > ${WRKDIR}/${OO_UNXNAME} @@ -152,6 +157,7 @@ do-install: ln -sf ${DESTDIR}${PREFIX}/${OO_RELEASE}/program/$$f \ ${DESTDIR}${PREFIX}/bin/$$f; \ done + ${INSTALL_DATA} ${WRKDIR}/xdg/* ${DESTDIR}${PREFIX}/share/applications ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME} ${DESTDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKDIR}/${OO_UNXNAME}-printeradmin \ ${DESTDIR}${PREFIX}/bin @@ -159,14 +165,11 @@ do-install: post-install: cd ${DESTDIR}${PREFIX} && \ find ${OO_RELEASE} \! -type d -print | \ - sort > ${PLIST_SRC} && \ + sort > ${WRKDIR}/PLIST && \ find ${OO_RELEASE} -type d -print | sort -r | \ - awk '{print("@dirrm "$$1)}' >> ${PLIST_SRC} - for f in ${OO_PROGRAMS}; do \ - ${ECHO} bin/$$f >> ${PLIST_SRC}; \ - done - ${ECHO} bin/${OO_UNXNAME} >> ${PLIST_SRC} - ${ECHO} bin/${OO_UNXNAME}-printeradmin >> ${PLIST_SRC} + awk '{print("@dirrm "$$1)}' >> ${WRKDIR}/PLIST + ${ECHO} bin/${OO_UNXNAME} >> ${WRKDIR}/PLIST + ${ECHO} bin/${OO_UNXNAME}-printeradmin >> ${WRKDIR}/PLIST # OS specific Makefile .if exists(Makefile.${OPSYS}) diff --git a/misc/openoffice2/PLIST b/misc/openoffice2/PLIST new file mode 100644 index 00000000000..26ffeda7769 --- /dev/null +++ b/misc/openoffice2/PLIST @@ -0,0 +1,15 @@ +@comment $NetBSD: PLIST,v 1.3 2008/09/20 14:14:47 hira Exp $ +bin/scalc +bin/sdraw +bin/simpress +bin/soffice +bin/swriter +bin/unopkg +share/applications/base.desktop +share/applications/calc.desktop +share/applications/draw.desktop +share/applications/impress.desktop +share/applications/math.desktop +share/applications/printeradmin.desktop +share/applications/qstart.desktop +share/applications/writer.desktop |