1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- No longer need to use X11BASE or partly install to it (because of GTK location)

- Use REINPLACE on Makefile.in at pre-configure stage, not on Makefile post-configure
- Remove unneeded PLIST vars, use only %%GTK2_VERSION%% as intended
- Adapt pkg-plist
- Port is finally PREFIX-safe
- Bump revision
- Pass maintainership to submitter

PR:		108222
Submitted by:	Danny Pansters <danny@ricin.com>
This commit is contained in:
Martin Wilke 2007-02-08 22:31:56 +00:00
parent 87f3eca8fb
commit 3fc55277c3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184604
6 changed files with 46 additions and 42 deletions

View File

@ -7,12 +7,12 @@
PORTNAME= gtk-qt-engine
PORTVERSION= 0.7
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= x11-themes
MASTER_SITES= http://people.freedesktop.org/~davidsansome/ \
MASTER_SITES= http://gtk-qt.ecs.soton.ac.uk/files/${PORTVERSION}/ \
http://freebsd.ricin.com/ports/distfiles/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danny@ricin.com
COMMENT= GTK-QT Theme Engine allows GTK2 apps to use QT (KDE) themes
LIB_DEPENDS= kdecore:${PORTSDIR}/x11/kdelibs3
@ -20,33 +20,36 @@ LIB_DEPENDS= kdecore:${PORTSDIR}/x11/kdelibs3
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnomehack gtk20
USE_GNOME= gtk20
USE_QT_VER= 3
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= GTK_VER=${GTK2_VERSION}
PLIST_SUB+= LOCALBASE=${LOCALBASE}
CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
OPTIONS= BONOBOUI "With libbonoboui (recommended)" on
OPTIONS= LIBBONOBOUI "Install libbonoboui if missing" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_BONOBOUI)
LIB_DEPENDS+= bonoboui-2:${PORTSDIR}/x11-toolkits/libbonoboui
# Note: had to turn off libbonoboui (dependency) OPTION for technical reasons
# So a "vanilla" package will have no libbonoboui support
.if defined(WITH_LIBBONOBOUI)
USE_GNOME+= libbonoboui
.endif
post-configure:
@${REINPLACE_CMD} -e "s|/usr/lib/menu|/tmp/menu|" \
${WRKSRC}/kcm_gtk/Makefile
post-patch:
@${REINPLACE_CMD} -e "s|GTK_LIBPREFIX)/gtk|PREFIX)/lib/gtk|" \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e "s|GTK_PREFIX)/share|PREFIX)/share|g" \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e "s|/usr/lib/menu|${WRKDIR}/menu|g" \
${WRKSRC}/kcm_gtk/Makefile.in
@${REINPLACE_CMD} -e \
"s|/usr/share/applications|${PREFIX}/share/applications/kde|g" \
${WRKSRC}/kcm_gtk/Makefile
${WRKSRC}/kcm_gtk/Makefile.in
post-install:
@${RM} /tmp/menu/kcmgtk.menu
@if [ "`ls /tmp/menu`" = "" ]; then ${RMDIR} /tmp/menu; fi
@${RM} -r ${WRKDIR}/menu
@${RM} ${PREFIX}/share/applnk/Settings/LookNFeel/kcmgtk.desktop
.include <bsd.port.post.mk>

View File

@ -2,6 +2,6 @@ GTK-QT Theme Engine allows GTK2 apps to use QT (KDE) themes
so that they fit in more nicely with KDE. Includes a KDE
control center module for GTK theme selection.
WWW: http://www.freedesktop.org/Software/gtk-qt
WWW: http://gtk-qt.ecs.soton.ac.uk/index.php
Author: David Sansome <me@davidsansome.com>

View File

@ -1,16 +1,15 @@
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.a
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.la
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.so
lib/kde3/kcm_kcmgtk.a
lib/kde3/kcm_kcmgtk.la
lib/kde3/kcm_kcmgtk.so
share/gtk-qt-engine/kde-index.theme
share/applications/kde/kcmgtk-xdg.desktop
share/locale/de/LC_MESSAGES/gtkqtengine.mo
share/locale/es/LC_MESSAGES/gtkqtengine.mo
share/locale/fr/LC_MESSAGES/gtkqtengine.mo
share/locale/nn/LC_MESSAGES/gtkqtengine.mo
@cwd %%LOCALBASE%%
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.a
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.la
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.so
share/gtk-qt-engine/kde-index.theme
share/themes/Qt/gtk-2.0/gtkrc
@dirrm share/themes/Qt/gtk-2.0
@dirrm share/themes/Qt

View File

@ -7,12 +7,12 @@
PORTNAME= gtk-qt-engine
PORTVERSION= 0.7
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= x11-themes
MASTER_SITES= http://people.freedesktop.org/~davidsansome/ \
MASTER_SITES= http://gtk-qt.ecs.soton.ac.uk/files/${PORTVERSION}/ \
http://freebsd.ricin.com/ports/distfiles/
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danny@ricin.com
COMMENT= GTK-QT Theme Engine allows GTK2 apps to use QT (KDE) themes
LIB_DEPENDS= kdecore:${PORTSDIR}/x11/kdelibs3
@ -20,33 +20,36 @@ LIB_DEPENDS= kdecore:${PORTSDIR}/x11/kdelibs3
USE_BZIP2= yes
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnomehack gtk20
USE_GNOME= gtk20
USE_QT_VER= 3
WRKSRC= ${WRKDIR}/${PORTNAME}
PLIST_SUB= GTK_VER=${GTK2_VERSION}
PLIST_SUB+= LOCALBASE=${LOCALBASE}
CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include
OPTIONS= BONOBOUI "With libbonoboui (recommended)" on
OPTIONS= LIBBONOBOUI "Install libbonoboui if missing" off
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_BONOBOUI)
LIB_DEPENDS+= bonoboui-2:${PORTSDIR}/x11-toolkits/libbonoboui
# Note: had to turn off libbonoboui (dependency) OPTION for technical reasons
# So a "vanilla" package will have no libbonoboui support
.if defined(WITH_LIBBONOBOUI)
USE_GNOME+= libbonoboui
.endif
post-configure:
@${REINPLACE_CMD} -e "s|/usr/lib/menu|/tmp/menu|" \
${WRKSRC}/kcm_gtk/Makefile
post-patch:
@${REINPLACE_CMD} -e "s|GTK_LIBPREFIX)/gtk|PREFIX)/lib/gtk|" \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e "s|GTK_PREFIX)/share|PREFIX)/share|g" \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e "s|/usr/lib/menu|${WRKDIR}/menu|g" \
${WRKSRC}/kcm_gtk/Makefile.in
@${REINPLACE_CMD} -e \
"s|/usr/share/applications|${PREFIX}/share/applications/kde|g" \
${WRKSRC}/kcm_gtk/Makefile
${WRKSRC}/kcm_gtk/Makefile.in
post-install:
@${RM} /tmp/menu/kcmgtk.menu
@if [ "`ls /tmp/menu`" = "" ]; then ${RMDIR} /tmp/menu; fi
@${RM} -r ${WRKDIR}/menu
@${RM} ${PREFIX}/share/applnk/Settings/LookNFeel/kcmgtk.desktop
.include <bsd.port.post.mk>

View File

@ -2,6 +2,6 @@ GTK-QT Theme Engine allows GTK2 apps to use QT (KDE) themes
so that they fit in more nicely with KDE. Includes a KDE
control center module for GTK theme selection.
WWW: http://www.freedesktop.org/Software/gtk-qt
WWW: http://gtk-qt.ecs.soton.ac.uk/index.php
Author: David Sansome <me@davidsansome.com>

View File

@ -1,16 +1,15 @@
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.a
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.la
lib/gtk-2.0/%%GTK2_VERSION%%/engines/libqtengine.so
lib/kde3/kcm_kcmgtk.a
lib/kde3/kcm_kcmgtk.la
lib/kde3/kcm_kcmgtk.so
share/gtk-qt-engine/kde-index.theme
share/applications/kde/kcmgtk-xdg.desktop
share/locale/de/LC_MESSAGES/gtkqtengine.mo
share/locale/es/LC_MESSAGES/gtkqtengine.mo
share/locale/fr/LC_MESSAGES/gtkqtengine.mo
share/locale/nn/LC_MESSAGES/gtkqtengine.mo
@cwd %%LOCALBASE%%
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.a
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.la
lib/gtk-2.0/%%GTK_VER%%/engines/libqtengine.so
share/gtk-qt-engine/kde-index.theme
share/themes/Qt/gtk-2.0/gtkrc
@dirrm share/themes/Qt/gtk-2.0
@dirrm share/themes/Qt