pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/openoffice2 Install *.desktop files to correct path.
details: https://anonhg.NetBSD.org/pkgsrc/rev/e52fd23f2514
branches: trunk
changeset: 547565:e52fd23f2514
user: hira <hira%pkgsrc.org@localhost>
date: Sat Sep 20 14:14:47 2008 +0000
description:
Install *.desktop files to correct path.
This fixes PR pkg/39589. Bump PKGREVISION.
diffstat:
misc/openoffice2/Makefile | 23 +++++++++++++----------
misc/openoffice2/PLIST | 15 +++++++++++++++
2 files changed, 28 insertions(+), 10 deletions(-)
diffs (88 lines):
diff -r b9acda195bd1 -r e52fd23f2514 misc/openoffice2/Makefile
--- a/misc/openoffice2/Makefile Sat Sep 20 07:13:22 2008 +0000
+++ b/misc/openoffice2/Makefile Sat Sep 20 14:14:47 2008 +0000
@@ -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 @@
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 @@
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 @@
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 @@
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 @@
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 -r b9acda195bd1 -r e52fd23f2514 misc/openoffice2/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/openoffice2/PLIST Sat Sep 20 14:14:47 2008 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index