summaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authormezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2011-04-03 06:04:39 +0800
committermezz <mezz@df743ca5-7f9a-e211-a948-0013205c9059>2011-04-03 06:04:39 +0800
commite29d32adc69a109b552a1350381b7b612bf22494 (patch)
tree91b9854aa27987d278c68ef1bf2f8761419abe42 /ports-mgmt
parent05909e2e7ee67e4dde01f59fd0d1aa93bd0bc5f9 (diff)
downloadmarcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar.gz
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar.bz2
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar.lz
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar.xz
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.tar.zst
marcuscom-ports-e29d32adc69a109b552a1350381b7b612bf22494.zip
Enable GTK3 module. The GTK2 module is disabled as we don't need it. It should
stop the annoy of this: % gvim Gtk-Message: Failed to load module "pk-gtk-module" Bump the PORTREVISION. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@15687 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/packagekit/Makefile25
-rw-r--r--ports-mgmt/packagekit/pkg-plist3
2 files changed, 16 insertions, 12 deletions
diff --git a/ports-mgmt/packagekit/Makefile b/ports-mgmt/packagekit/Makefile
index 59e56e259..afdafcc29 100644
--- a/ports-mgmt/packagekit/Makefile
+++ b/ports-mgmt/packagekit/Makefile
@@ -3,11 +3,11 @@
# Whom: Anders F Bjorklund <afb@users.sourceforge.net>
#
# $FreeBSD$
-# $MCom$
+# $MCom: ports/ports-mgmt/packagekit/Makefile,v 1.28 2011/04/02 03:34:51 mezz Exp $
PORTNAME= PackageKit
PORTVERSION= 0.6.13
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= ports-mgmt sysutils
MASTER_SITES= http://www.packagekit.org/releases/
@@ -49,9 +49,8 @@ MAKE_JOBS_UNSAFE=yes
.if !defined(SLAVEPORT)
OPTIONS=PORTS "Use portupgrade for management, dummy if disabled" on \
- PORTDOCS "Build documentation" on
-# gtk module seems to be broken/disabled/gone?
-# GTK20 "Enable GTK+ modules" off \
+ PORTDOCS "Build documentation" on \
+ GTK30 "Enable GTK+ modules" on
.if defined(NO_INSTALL_MANPAGES)
CONFIGURE_ARGS+=--disable-man-pages
@@ -75,14 +74,14 @@ CONFIGURE_ARGS+=--disable-ports --with-default-backend=dummy
PLIST_SUB+= PORTS="@comment "
.endif
-#.if defined(WITH_GTK)
-#USE_GNOME+= gtk20
-#CONFIGURE_ARGS+=--enable-gtk-module
-#PLIST_SUB+= GTK=""
-#.else
+.if defined(WITH_GTK30)
+USE_GNOME+= gtk30
+CONFIGURE_ARGS+=--enable-gtk-module
+PLIST_SUB+= GTK=""
+.else
CONFIGURE_ARGS+=--disable-gtk-module
PLIST_SUB+= GTK="@comment "
-#.endif
+.endif
.if defined(SLAVEPORT)
LIB_DEPENDS+= packagekit-glib2.14:${PORTSDIR}/ports-mgmt/packagekit
@@ -100,7 +99,9 @@ CONFIGURE_ARGS+=--disable-qt
post-patch:
@${REINPLACE_CMD} -E -e 's/.*WARNINGFLAGS_CPP.*-Werror/#$$&/' \
- -e 's|-Wmissing-include-dirs||g' ${WRKSRC}/configure
+ -e 's|-Wmissing-include-dirs||g ; \
+ s|build_gtk_module_gtk2=yes|build_gtk_module_gtk2=no|g' \
+ ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/src/pk-lsof.c
@${REINPLACE_CMD} -e 's|girepositry|girepository|g' \
diff --git a/ports-mgmt/packagekit/pkg-plist b/ports-mgmt/packagekit/pkg-plist
index d89cabb33..3da056bde 100644
--- a/ports-mgmt/packagekit/pkg-plist
+++ b/ports-mgmt/packagekit/pkg-plist
@@ -56,6 +56,9 @@ include/PackageKit/packagekit-glib2/pk-transaction-past.h
include/PackageKit/packagekit-glib2/pk-update-detail.h
include/PackageKit/packagekit-glib2/pk-version.h
lib/girepository-1.0/PackageKitGlib-1.0.typelib
+%%GTK%%lib/gtk-3.0/modules/libpk-gtk-module.a
+%%GTK%%lib/gtk-3.0/modules/libpk-gtk-module.la
+%%GTK%%lib/gtk-3.0/modules/libpk-gtk-module.so
lib/libpackagekit-glib2.a
lib/libpackagekit-glib2.la
lib/libpackagekit-glib2.so