aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysqlcc
diff options
context:
space:
mode:
authoranders <anders@FreeBSD.org>2003-09-07 20:33:02 +0800
committeranders <anders@FreeBSD.org>2003-09-07 20:33:02 +0800
commit4812d69f3bd6c13eaee20810c91a06976932f113 (patch)
treed24866b0a98d08e299a25b9384809a5372ca5e84 /databases/mysqlcc
parent7f2e9a70f0bde708d70070960f728ca7e30a52c6 (diff)
downloadfreebsd-ports-gnome-4812d69f3bd6c13eaee20810c91a06976932f113.tar.gz
freebsd-ports-gnome-4812d69f3bd6c13eaee20810c91a06976932f113.tar.zst
freebsd-ports-gnome-4812d69f3bd6c13eaee20810c91a06976932f113.zip
Install translations.
Set the data directory to PREFIX/share/mysqlcc. Install plugins under docs. PR: 53246 Submitted by: Mark Hannon <markhannon@optusnet.com.au> (partly)
Diffstat (limited to 'databases/mysqlcc')
-rw-r--r--databases/mysqlcc/Makefile13
-rw-r--r--databases/mysqlcc/pkg-plist32
2 files changed, 39 insertions, 6 deletions
diff --git a/databases/mysqlcc/Makefile b/databases/mysqlcc/Makefile
index 827fc0aaffd4..bcb3035f4447 100644
--- a/databases/mysqlcc/Makefile
+++ b/databases/mysqlcc/Makefile
@@ -25,28 +25,29 @@ LIB_DEPENDS= mysqlclient.12:${PORTSDIR}/databases/mysql40-client
USE_REINPLACE= yes
GNU_CONFIGURE= yes
USE_QT_VER= 3
-QT_NONSTANDARD= yes
CONFIGURE_ARGS+= --with-qt=${X11BASE}
DOCS= Changelog.txt README.txt TODO.txt
-
SHARE_DATA= error.wav warning.wav syntax.txt
post-patch:
- ${REINPLACE_CMD} -E -e 's@^(QMAKESPEC=\$$QTDIR).*@\1/share/qt/mkspecs/default@' ${WRKSRC}/configure
- ${REINPLACE_CMD} -E -e 's@-pthread -D_THREAD_SAFE@${PTHREAD_CFLAGS}@;s@^(LFLAGS.*)-pthread@\1${PTHREAD_LIBS}@' ${WRKSRC}/Makefile
+ ${REINPLACE_CMD} -E -e 's@^(QMAKESPEC=\$$QTDIR).*@\1/share/qt/mkspecs/freebsd-g++@' ${WRKSRC}/configure
+ ${REINPLACE_CMD} -E -e "s@(QString mydir =) QDir.*@\1 \"${DATADIR}/\";@" ${WRKSRC}/src/CApplication.cpp
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mysqlcc ${PREFIX}/bin/
- ${MKDIR} -m 0755 ${DATADIR}
+ ${MKDIR} -m 0755 -p ${DATADIR}/translations
.for f in ${SHARE_DATA}
${INSTALL_DATA} ${WRKSRC}/${f} ${DATADIR}/
.endfor
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.qm ${DATADIR}/translations/
+ ${INSTALL_DATA} ${WRKSRC}/translations/*.ts ${DATADIR}/translations/
.if !defined(NOPORTDOCS)
- ${MKDIR} -m 0755 ${DOCSDIR}
+ ${MKDIR} -m 0755 -p ${DOCSDIR}/plugins
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
+ (umask 022; ${TAR} -C ${WRKSRC}/plugins -cpf - . | ${TAR} -C ${DOCSDIR}/plugins -xpf -)
.endif
.include <bsd.port.mk>
diff --git a/databases/mysqlcc/pkg-plist b/databases/mysqlcc/pkg-plist
index e1a3a778ad93..34acd4643082 100644
--- a/databases/mysqlcc/pkg-plist
+++ b/databases/mysqlcc/pkg-plist
@@ -2,8 +2,40 @@ bin/mysqlcc
%%DATADIR%%/error.wav
%%DATADIR%%/warning.wav
%%DATADIR%%/syntax.txt
+%%DATADIR%%/translations/Deutsch.qm
+%%DATADIR%%/translations/Deutsch.ts
+%%DATADIR%%/translations/French.qm
+%%DATADIR%%/translations/French.ts
+%%DATADIR%%/translations/Italian.qm
+%%DATADIR%%/translations/Italian.ts
+%%DATADIR%%/translations/Polish.qm
+%%DATADIR%%/translations/Polish.ts
+%%DATADIR%%/translations/Russian.qm
+%%DATADIR%%/translations/Russian.ts
+%%DATADIR%%/translations/Spanish.qm
+%%DATADIR%%/translations/Spanish.ts
+%%DATADIR%%/translations/Simplified_Chinese.qm
+%%DATADIR%%/translations/Simplified_Chinese.ts
+%%DATADIR%%/translations/Traditional_Chinese.qm
+%%DATADIR%%/translations/Traditional_Chinese.ts
%%PORTDOCS%%%%DOCSDIR%%/Changelog.txt
%%PORTDOCS%%%%DOCSDIR%%/README.txt
%%PORTDOCS%%%%DOCSDIR%%/TODO.txt
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/README.txt
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello.cpp
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello.h
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.cpp
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.def
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.h
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/hello_plugin.pro
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/main.cpp
+%%PORTDOCS%%%%DOCSDIR%%/plugins/hello/moc_hello.cpp
+%%PORTDOCS%%%%DOCSDIR%%/plugins/service/StdAfx.cpp
+%%PORTDOCS%%%%DOCSDIR%%/plugins/service/StdAfx.h
+%%PORTDOCS%%%%DOCSDIR%%/plugins/service/service.cpp
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins/hello
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins/service
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/plugins
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%/translations
@dirrm %%DATADIR%%