summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2010-03-14 02:13:44 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2010-03-14 02:13:44 +0800
commit57c03ffa3c245c17448d75d8007bb9345fe8bfbe (patch)
treeb8520c642037ddb0c3ccc8b8fccca9bbff4c1e81 /mail
parent0d911cd3899a7c1b1804dcca50f37feb63a0aa16 (diff)
downloadmarcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar.gz
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar.bz2
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar.lz
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar.xz
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.tar.zst
marcuscom-ports-57c03ffa3c245c17448d75d8007bb9345fe8bfbe.zip
Add the g_module stub symbols to the Evo component modules as well.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13810 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'mail')
-rw-r--r--mail/evolution/Makefile3
-rwxr-xr-xmail/evolution/files/fix-plugins.sh17
2 files changed, 19 insertions, 1 deletions
diff --git a/mail/evolution/Makefile b/mail/evolution/Makefile
index 696038438..5e2768d82 100644
--- a/mail/evolution/Makefile
+++ b/mail/evolution/Makefile
@@ -3,11 +3,12 @@
# Whom: Ade Lovett <ade@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/mail/evolution/Makefile,v 1.216 2010/03/06 17:04:13 marcus Exp $
+# $MCom: ports/mail/evolution/Makefile,v 1.217 2010/03/13 07:49:43 marcus Exp $
#
PORTNAME= evolution
PORTVERSION= 2.29.92.1
+PORTREVISION= 1
CATEGORIES= mail gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
diff --git a/mail/evolution/files/fix-plugins.sh b/mail/evolution/files/fix-plugins.sh
index 0d25e324d..d89e32aef 100755
--- a/mail/evolution/files/fix-plugins.sh
+++ b/mail/evolution/files/fix-plugins.sh
@@ -2,6 +2,8 @@
plugin_srcs="addressbook-file/addressbook-file.c attachment-reminder/attachment-reminder.c audio-inline/audio-inline.c backup-restore/backup-restore.c bbdb/bbdb.c bogo-junk-plugin/bf-junk-filter.c caldav/caldav-source.c calendar-file/calendar-file.c calendar-http/calendar-http.c calendar-weather/calendar-weather.c contacts-map/contacts-map.c default-mailer/default-mailer.c default-source/default-source.c email-custom-header/email-custom-header.c external-editor/external-editor.c face/face.c google-account-setup/google-source.c groupwise-features/install-shared.c hula-account-setup/hula-account-setup.c image-inline/image-inline.c imap-features/imap-headers.c itip-formatter/itip-formatter.c mail-notification/mail-notification.c mail-to-task/mail-to-task.c mailing-list-actions/mailing-list-actions.c mark-all-read/mark-all-read.c plugin-manager/plugin-manager.c prefer-plain/prefer-plain.c profiler/profiler.c pst-import/pst-importer.c publish-calendar/publish-calendar.c sa-junk-plugin/em-junk-filter.c save-calendar/save-calendar.c startup-wizard/startup-wizard.c subject-thread/subject-thread.c templates/templates.c tnef-attachments/tnef-plugin.c vcard-inline/vcard-inline.c webdav-account-setup/webdav-contacts-source.c"
+module_srcs="addressbook/evolution-module-addressbook.c calendar/evolution-module-calendar.c mail/evolution-module-mail.c plugin-lib/evolution-module-plugin-lib.c plugin-mono/evolution-module-plugin-mono.c plugin-python/evolution-module-plugin-python.c"
+
WRKSRC=$1
for i in ${plugin_srcs}; do
@@ -9,6 +11,7 @@ for i in ${plugin_srcs}; do
echo "WARNING: Failed to find plugin source file ${WRKSRC}/plugins/${i}"
continue
fi
+ irintf "void\ng_module_unload (gpointer module) {\n\treturn;\n}\n" >> ${WRKSRC}/plugins/${i}
cp ${WRKSRC}/plugins/${i} ${WRKSRC}/plugins/${i}.bak
printf "const char * g_module_check_init (gpointer module);\n" >> ${WRKSRC}/plugins/${i}
printf "const char *\ng_module_check_init (gpointer module) {\n\treturn NULL;\n}\n" >> ${WRKSRC}/plugins/${i}
@@ -21,3 +24,17 @@ for i in ${plugin_srcs}; do
printf "gint\ne_plugin_lib_enable (EPlugin *ep, gint enable) {\n\treturn 0;\n}\n" >> ${WRKSRC}/plugins/${i}
fi
done
+
+for i in ${module_srcs}; do
+ if [ ! -f ${WRKSRC}/modules/${i} ]; then
+ echo "WARNING: Failed to find module source file ${WRKSRC}/modules/${i}"
+ continue
+ fi
+ cp ${WRKSRC}/modules/${i} ${WRKSRC}/modules/${i}.bak
+ printf "const char * g_module_check_init (gpointer module);\n" >> ${WRKSRC}/modules/${i}
+ printf "const char *\ng_module_check_init (gpointer module) {\n\treturn NULL;\n}\n" >> ${WRKSRC}/modules/${i}
+ printf "void g_module_unload (gpointer module);\n" >> ${WRKSRC}/modules/${i}
+ printf "void\ng_module_unload (gpointer module) {\n\treturn;\n}\n" >> ${WRKSRC}/modules/${i}
+done
+
+