Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2019 15:08:08 +0000 (UTC)
From:      =?UTF-8?Q?Alexandre_C=2e_Guimar=c3=a3es?= <rigoletto@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489579 - in head: graphics/lximage-qt sysutils/lxqt-qtplugin x11-fm/pcmanfm x11-fm/pcmanfm-qt x11/libfm x11/libfm-extra x11/libfm-qt x11/lxhotkey x11/lxpanel
Message-ID:  <201901071508.x07F88i1071650@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rigoletto
Date: Mon Jan  7 15:08:08 2019
New Revision: 489579
URL: https://svnweb.freebsd.org/changeset/ports/489579

Log:
  x11/libfm, x11-fm/pcmanfm: update and flavorize both.
  
  - update x11/libfm to version 1.3.1
  - update x11-fm/pcmanfm to version 1.3.1
  - convert both to flavors
  - fix other affected ports
  
  PR:		229944
  Reviewed by:	adamw, antoine, bapt
  Approved by:	mat (portmgr, mentor), tcberner (mentor), jsm (maintainer), Chris Hutchinson <portmaster@bsdforge.com> (maintainer)
  Differential Revision:	https://reviews.freebsd.org/D16387

Modified:
  head/graphics/lximage-qt/Makefile
  head/sysutils/lxqt-qtplugin/Makefile
  head/x11-fm/pcmanfm-qt/Makefile
  head/x11-fm/pcmanfm/Makefile
  head/x11-fm/pcmanfm/distinfo
  head/x11/libfm-extra/pkg-plist
  head/x11/libfm-qt/Makefile
  head/x11/libfm/Makefile
  head/x11/libfm/distinfo
  head/x11/libfm/pkg-plist
  head/x11/lxhotkey/Makefile
  head/x11/lxpanel/Makefile

Modified: head/graphics/lximage-qt/Makefile
==============================================================================
--- head/graphics/lximage-qt/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/graphics/lximage-qt/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -14,7 +14,7 @@ LICENSE=	GPLv2
 
 LIB_DEPENDS=	libexif.so:graphics/libexif \
 	libmenu-cache.so:x11/menu-cache \
-	libfm.so:x11/libfm
+	libfm.so:x11/libfm@gtk2
 
 USES=	cmake compiler:c++11-lib desktop-file-utils gettext-runtime \
 	localbase:ldflags lxqt pkgconfig qt:5 tar:xz

Modified: head/sysutils/lxqt-qtplugin/Makefile
==============================================================================
--- head/sysutils/lxqt-qtplugin/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/sysutils/lxqt-qtplugin/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -13,7 +13,7 @@ COMMENT=	LXQt system integration plugin for Qt
 LICENSE=	LGPL21+
 
 LIB_DEPENDS=	libdbusmenu-qt5.so:devel/libdbusmenu-qt@qt5 \
-		libfm.so:x11/libfm \
+		libfm.so:x11/libfm@gtk2 \
 		libmenu-cache.so:x11/menu-cache \
 		libexif.so:graphics/libexif
 

Modified: head/x11-fm/pcmanfm-qt/Makefile
==============================================================================
--- head/x11-fm/pcmanfm-qt/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11-fm/pcmanfm-qt/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -13,7 +13,7 @@ COMMENT=	LXQt file manager
 LICENSE=	GPLv2
 
 LIB_DEPENDS=	libmenu-cache.so:x11/menu-cache \
-		libfm.so:x11/libfm \
+		libfm.so:x11/libfm@gtk2 \
 		libexif.so:graphics/libexif
 
 USES=		cmake compiler:c++11-lib desktop-file-utils \

Modified: head/x11-fm/pcmanfm/Makefile
==============================================================================
--- head/x11-fm/pcmanfm/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11-fm/pcmanfm/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	pcmanfm
-PORTVERSION=	1.2.5
+PORTVERSION=	1.3.1
 CATEGORIES=	x11-fm
 MASTER_SITES=	SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/
 
@@ -11,25 +11,42 @@ COMMENT=	PCMan File Manager
 
 LICENSE=	GPLv2
 
-LIB_DEPENDS=	libfm-gtk.so:x11/libfm \
-		libfontconfig.so:x11-fonts/fontconfig \
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2
 
-USES=		desktop-file-utils gettext gmake libtool localbase pkgconfig \
-		tar:xz
-GNU_CONFIGURE=	yes
-USE_GNOME=	glib20 gtk20 cairo pango gdkpixbuf2 intltool intlhack
+FLAVORS=	gtk2 gtk3
+FLAVOR?=	${FLAVORS:[1]}
+
+gtk3_PKGNAMESUFFIX=	-gtk3
+
+gtk2_LIB_DEPENDS=	libfm-gtk.so:x11/libfm@gtk2
+gtk3_LIB_DEPENDS=	libfm-gtk3.so:x11/libfm@gtk3
+
+gtk2_CONFLICTS_INSTALL=	pcmanfm-gtk3
+gtk3_CONFLICTS_INSTALL=	pcmanfm
+
+USES=		desktop-file-utils gmake gnome gettext libtool localbase \
+		pkgconfig tar:xz
+USE_GNOME=	cairo gdkpixbuf2 intltool
 USE_XORG=	x11
+GNU_CONFIGURE=	yes
 
-CONFIGURE_ARGS=--with-gtk=2
+.if ${FLAVOR:Mgtk2}
+USE_GNOME+=	gtk20
+CONFIGURE_ARGS=	--with-gtk=2
+.elif ${FLAVOR:Mgtk3}
+USE_GNOME+=	gtk30
+CONFIGURE_ARGS=	--with-gtk=3
+.endif
 
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
+
+NLS_USES=	gettext-tools:build
 NLS_CONFIGURE_ENABLE=	nls
-NLS_USES_OFF=	gettext-tools
 
 post-extract:
-	${MV} ${WRKSRC}/data/pcmanfm.conf \
+	@${MV} ${WRKSRC}/data/pcmanfm.conf \
 		${WRKSRC}/data/pcmanfm.conf.sample
 
 post-patch:

Modified: head/x11-fm/pcmanfm/distinfo
==============================================================================
--- head/x11-fm/pcmanfm/distinfo	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11-fm/pcmanfm/distinfo	Mon Jan  7 15:08:08 2019	(r489579)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1482343112
-SHA256 (pcmanfm-1.2.5.tar.xz) = 0c86cac028b705ff314c7464d814c2cf7ff604c17491c20aa204b1ef1a80ad67
-SIZE (pcmanfm-1.2.5.tar.xz) = 417808
+TIMESTAMP = 1545853766
+SHA256 (pcmanfm-1.3.1.tar.xz) = 6804043b3ee3a703edde41c724946174b505fe958703eadbd7e0876ece836855
+SIZE (pcmanfm-1.3.1.tar.xz) = 423380

Modified: head/x11/libfm-extra/pkg-plist
==============================================================================
--- head/x11/libfm-extra/pkg-plist	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/libfm-extra/pkg-plist	Mon Jan  7 15:08:08 2019	(r489579)
@@ -3,5 +3,5 @@ include/libfm/fm-version.h
 include/libfm/fm-xml-file.h
 lib/libfm-extra.so
 lib/libfm-extra.so.4
-lib/libfm-extra.so.4.0.5
+lib/libfm-extra.so.4.1.2
 libdata/pkgconfig/libfm-extra.pc

Modified: head/x11/libfm-qt/Makefile
==============================================================================
--- head/x11/libfm-qt/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/libfm-qt/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -12,7 +12,7 @@ COMMENT=	Qt port of libfm
 
 LICENSE=	LGPL21+
 
-LIB_DEPENDS=	libfm.so:x11/libfm \
+LIB_DEPENDS=	libfm.so:x11/libfm@gtk2 \
 	libmenu-cache.so:x11/menu-cache \
 	libexif.so:graphics/libexif
 

Modified: head/x11/libfm/Makefile
==============================================================================
--- head/x11/libfm/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/libfm/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	libfm
-PORTVERSION=	1.2.5
+DISTVERSION=	1.3.1
 CATEGORIES=	x11
 MASTER_SITES=	SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/
 
@@ -19,35 +19,53 @@ LIB_DEPENDS=	libmenu-cache.so:x11/menu-cache \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2 \
 		libfm-extra.so:x11/libfm-extra
+
+FLAVORS=	gtk2 gtk3
+FLAVOR?=	${FLAVORS:[1]}
+
+gtk3_PKGNAMESUFFIX=	-gtk3
+
+gtk2_CONFLICTS_INSTALL=	libfm-gtk3
+gtk3_CONFLICTS_INSTALL=	libfm
 .endif
 
 SLAVEDIRS=	${CATEGORIES}/${PORTNAME}-extra
 
-USES=		gettext-tools gmake libtool localbase pathfix pkgconfig tar:xz
-USE_GNOME=	glib20 intltool
+USES=		gettext-tools gmake gnome libtool localbase \
+		pkgconfig tar:xz
+USE_GNOME=	intltool
 USE_LDCONFIG=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--sysconfdir=${LOCALBASE}/etc --disable-static
-INSTALL_TARGET=	install-strip
 
 .if ! defined(EXTRA_ONLY)
+.  if ${FLAVOR:Mgtk2}
 USES+=		desktop-file-utils shared-mime-info
 USE_GNOME+=	gtk20 cairo gdkpixbuf2
-CONFIGURE_ARGS+=--with-gtk=2
+CONFIGURE_ARGS+=	--with-gtk=2
+PLIST_SUB=	GTKVERSION=gtk
+.  elif ${FLAVOR:Mgtk3}
+USES+=		desktop-file-utils shared-mime-info
+USE_GNOME+=	gtk30 cairo gdkpixbuf2
+CONFIGURE_ARGS+=	--with-gtk=3
+PLIST_SUB=	GTKVERSION=gtk3
+.  endif
 .else
-USE_GNOME+=	intltool intlhack
-CONFIGURE_ARGS+=--with-extra-only
+USE_GNOME+=	glib20
+CONFIGURE_ARGS+=	--with-extra-only
 .endif
 
+INSTALL_TARGET=	install-strip
+
 OPTIONS_DEFINE=	NLS
 OPTIONS_SUB=	yes
 
-NLS_USES=	gettext-runtime
+NLS_USES=	gettext-runtime:build
 NLS_CONFIGURE_ENABLE=	nls
 
 post-extract:
-.if !defined(EXTRA_ONLY)
-	${MV} ${WRKSRC}/data/libfm.conf \
+.if ! defined(EXTRA_ONLY)
+	@${MV} ${WRKSRC}/data/libfm.conf \
 		${WRKSRC}/data/libfm.conf.sample
 .endif
 
@@ -56,10 +74,9 @@ post-patch:
 		${WRKSRC}/configure
 
 	${REINPLACE_CMD} -e '/^pkgincludedir/s|-@FMLIBVER@||; \
-		/@LN_S@ @PACKAGE@-@FMLIBVER@/d' \
-		${WRKSRC}/src/Makefile.in
+		/@LN_S@ @PACKAGE@-@FMLIBVER@/d' ${WRKSRC}/src/Makefile.in
 
-.if !defined(EXTRA_ONLY)
+.if ! defined(EXTRA_ONLY)
 	${REINPLACE_CMD} -e 's|DATA = libfm-extra.pc|DATA =|' \
 		${WRKSRC}/Makefile.in
 

Modified: head/x11/libfm/distinfo
==============================================================================
--- head/x11/libfm/distinfo	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/libfm/distinfo	Mon Jan  7 15:08:08 2019	(r489579)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1481474043
-SHA256 (libfm-1.2.5.tar.xz) = c706bb1020cf5f2d6f5a9226f692ce1985947134dcf2bde64278bd0420779b5a
-SIZE (libfm-1.2.5.tar.xz) = 912740
+TIMESTAMP = 1545853830
+SHA256 (libfm-1.3.1.tar.xz) = 96b1244bde41ca0eef0332cfb5c67bb16725dfd102128f3e6f74fadc13a1cfe4
+SIZE (libfm-1.3.1.tar.xz) = 940632

Modified: head/x11/libfm/pkg-plist
==============================================================================
--- head/x11/libfm/pkg-plist	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/libfm/pkg-plist	Mon Jan  7 15:08:08 2019	(r489579)
@@ -1,6 +1,7 @@
 bin/libfm-pref-apps
 bin/lxshortcut
 @sample etc/xdg/libfm/libfm.conf.sample
+include/libfm/fm-action.h
 include/libfm/fm-actions.h
 include/libfm/fm-app-chooser-combo-box.h
 include/libfm/fm-app-chooser-dlg.h
@@ -67,19 +68,19 @@ include/libfm/fm-thumbnail.h
 include/libfm/fm-thumbnailer.h
 include/libfm/fm-utils.h
 include/libfm/fm.h
-lib/libfm-gtk.so
-lib/libfm-gtk.so.4
-lib/libfm-gtk.so.4.0.5
+lib/libfm-%%GTKVERSION%%.so
+lib/libfm-%%GTKVERSION%%.so.4
+lib/libfm-%%GTKVERSION%%.so.4.1.2
 lib/libfm.so
 lib/libfm.so.4
-lib/libfm.so.4.0.5
+lib/libfm.so.4.1.2
 lib/libfm/modules/gtk-fileprop-x-desktop.so
 lib/libfm/modules/gtk-fileprop-x-shortcut.so
 lib/libfm/modules/gtk-menu-actions.so
 lib/libfm/modules/gtk-menu-trash.so
 lib/libfm/modules/vfs-menu.so
 lib/libfm/modules/vfs-search.so
-libdata/pkgconfig/libfm-gtk.pc
+libdata/pkgconfig/libfm-%%GTKVERSION%%.pc
 libdata/pkgconfig/libfm.pc
 man/man1/libfm-pref-apps.1.gz
 man/man1/lxshortcut.1.gz

Modified: head/x11/lxhotkey/Makefile
==============================================================================
--- head/x11/lxhotkey/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/lxhotkey/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -13,7 +13,7 @@ LICENSE=	GPLv2
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libfm-extra.so:x11/libfm-extra \
-	libfm.so:x11/libfm \
+	libfm.so:x11/libfm@gtk2 \
 	libfontconfig.so:x11-fonts/fontconfig \
 	libfreetype.so:print/freetype2 \
 	libunistring.so:devel/libunistring

Modified: head/x11/lxpanel/Makefile
==============================================================================
--- head/x11/lxpanel/Makefile	Mon Jan  7 15:01:42 2019	(r489578)
+++ head/x11/lxpanel/Makefile	Mon Jan  7 15:08:08 2019	(r489579)
@@ -15,7 +15,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 LIB_DEPENDS=	libmenu-cache.so:x11/menu-cache \
 		libkeybinder.so:x11/keybinder \
-		libfm-gtk.so:x11/libfm \
+		libfm-gtk.so:x11/libfm@gtk2 \
 		libfontconfig.so:x11-fonts/fontconfig \
 		libfreetype.so:print/freetype2
 RUN_DEPENDS=	${LOCALBASE}/etc/xdg/menus/lxde-applications.menu:x11/lxmenu-data



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901071508.x07F88i1071650>