summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-04-30 15:03:51 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-04-30 15:03:51 +0800
commit1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93 (patch)
treeb6ea22ae8171845000ff0747d149ca2e13ab7a1c
parentfa5fb97b85649c0d734f32d120050f168ef64d28 (diff)
downloadmarcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar.gz
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar.bz2
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar.lz
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar.xz
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.tar.zst
marcuscom-ports-1c24b86a1ca0b1e6b5cf144f1ea9db7e202cef93.zip
- install .desktop file in share/applications and remove gnomehier depend.
- Remove a few unneeded hacks from this CVS snapshot Note: pkg-[de]install scripts ARE needed. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3965 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--deskutils/sunbird/Makefile16
-rw-r--r--deskutils/sunbird/pkg-install.in2
2 files changed, 6 insertions, 12 deletions
diff --git a/deskutils/sunbird/Makefile b/deskutils/sunbird/Makefile
index dc9fe3c6e..ae2fbb39b 100644
--- a/deskutils/sunbird/Makefile
+++ b/deskutils/sunbird/Makefile
@@ -27,7 +27,7 @@ USE_REINPLACE= yes
HAS_CONFIGURE= yes
USE_GMAKE= yes
USE_BZIP2= yes
-USE_GNOME= gtk20 libidl gnomehier
+USE_GNOME= gtk20 libidl
USE_ICONV= yes
USE_PERL5_BUILD=yes
USE_X_PREFIX= yes
@@ -38,8 +38,7 @@ PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
SUNBIRD= ${PORTNAME}
-SUNBIRD_ICON= sunbird.xpm
-SUNBIRD_ICON_SRC= ${WRKSRC}/calendar/sunbird/app/default.xpm
+SUNBIRD_ICON= ${PREFIX}/lib/sunbird/icons/default.xpm
PKGCONFIG_FILES=sunbird-gtkmozembed sunbird-js sunbird-xpcom \
sunbird-nspr sunbird-nss sunbird-plugin
@@ -96,9 +95,6 @@ post-extract::
<${FILESDIR}/mozconfig.in >${WRKSRC}/.mozconfig
post-patch:
-# Stupid hack
- @${ECHO_CMD} "LDFLAGS += -L${LOCALBASE}/lib" \
- >> ${WRKSRC}/toolkit/components/gnome/Makefile.in
@${SED} -e 's|%%MOZDIR%%|${PREFIX}/lib/${SUNBIRD}|g ; \
s|%%PREFIX%%|${PREFIX}|g ; \
s|%%X11BASE%%|${X11BASE}|g' \
@@ -134,8 +130,8 @@ pre-install:
@${RM} -rf ${FAKEDIR} ${PLIST}
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} \
Makefile ${MAKE_ARGS} install
- ${ECHO_CMD} 'share/gnome/pixmaps/${SUNBIRD_ICON}' >> ${PLIST}
- ${ECHO_CMD} 'share/gnome/applications/sunbird.desktop' >> ${PLIST}
+ ${ECHO_CMD} 'share/applications/sunbird.desktop' >> ${PLIST}
+ ${ECHO_CMD} '@unexec ${RMDIR} %D/share/applications 2>/dev/null || ${TRUE}' >> ${PLIST}
${REINPLACE_CMD} -e 's|${FAKEDIR}|${PREFIX}|g' \
${FAKEDIR}/bin/sunbird \
${FAKEDIR}/bin/sunbird-config
@@ -173,12 +169,12 @@ do-install:
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/${SUNBIRD}
cd ${FAKEDIR}/lib/${SUNBIRD} && ${FIND} . | \
${CPIO} -pdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/lib/${SUNBIRD}
+ ${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKDIR}/sunbird.desktop ${PREFIX}/share/applications
post-install:
.if !defined(PACKAGE_BUILDING)
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.endif
- ${INSTALL_DATA} ${SUNBIRD_ICON_SRC} ${PREFIX}/share/gnome/pixmaps/${SUNBIRD_ICON}
- ${INSTALL_DATA} ${WRKDIR}/sunbird.desktop ${PREFIX}/share/gnome/applications
.include <bsd.port.post.mk>
diff --git a/deskutils/sunbird/pkg-install.in b/deskutils/sunbird/pkg-install.in
index 9d765fc7d..89d564b8c 100644
--- a/deskutils/sunbird/pkg-install.in
+++ b/deskutils/sunbird/pkg-install.in
@@ -14,7 +14,6 @@ PATH=/bin:/usr/bin:/usr/local/bin
MOZDIR=%%MOZDIR%%
REGXPCOM=${MOZDIR}/regxpcom
-REGCHROME=${MOZDIR}/regchrome
SUNBIRD=${MOZDIR}/sunbird-bin
echo "===> Building Chrome's registry..."
@@ -26,7 +25,6 @@ rm -rf ${MOZDIR}/extensions
cd ${MOZDIR} || exit 1
./run-mozilla.sh ${REGXPCOM} || true
-./run-mozilla.sh ${REGCHROME} || true
./run-mozilla.sh ${SUNBIRD} -register > /dev/null 2>&1
exit 0