From owner-svn-ports-all@freebsd.org Sat Aug 1 10:15:52 2015 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6840E9B0383; Sat, 1 Aug 2015 10:15:52 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D9441A3E; Sat, 1 Aug 2015 10:15:52 +0000 (UTC) (envelope-from riggs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.70]) by repo.freebsd.org (8.14.9/8.14.9) with ESMTP id t71AFqHh077020; Sat, 1 Aug 2015 10:15:52 GMT (envelope-from riggs@FreeBSD.org) Received: (from riggs@localhost) by repo.freebsd.org (8.14.9/8.14.9/Submit) id t71AFpLl077018; Sat, 1 Aug 2015 10:15:51 GMT (envelope-from riggs@FreeBSD.org) Message-Id: <201508011015.t71AFpLl077018@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: riggs set sender to riggs@FreeBSD.org using -f From: Thomas Zander Date: Sat, 1 Aug 2015 10:15:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r393393 - in head/x11/libfm: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Aug 2015 10:15:52 -0000 Author: riggs Date: Sat Aug 1 10:15:50 2015 New Revision: 393393 URL: https://svnweb.freebsd.org/changeset/ports/393393 Log: - Convert x11/libfm and x11/libfm-extra to Master-Slave Port (same application, CATEGORIES, DISTFILES, install path) - Bump PORTREVISION - Add missing fm-actions header - Move patches to Makefile PR: 200824 Submitted by: horia@racoviceanu.com (maintainer) Deleted: head/x11/libfm/files/ Modified: head/x11/libfm/Makefile head/x11/libfm/pkg-plist Modified: head/x11/libfm/Makefile ============================================================================== --- head/x11/libfm/Makefile Sat Aug 1 10:09:19 2015 (r393392) +++ head/x11/libfm/Makefile Sat Aug 1 10:15:50 2015 (r393393) @@ -3,45 +3,87 @@ PORTNAME= libfm PORTVERSION= 1.2.3 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= SF/pcmanfm/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/LibFM/ MAINTAINER= horia@racoviceanu.com -COMMENT= Core library of PCManFM file manager +COMMENT?= Core library of PCManFM file manager LICENSE= LGPL21 +.if ! defined(EXTRA_ONLY) BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \ valac:${PORTSDIR}/lang/vala LIB_DEPENDS= libmenu-cache.so:${PORTSDIR}/x11/menu-cache \ libexif.so:${PORTSDIR}/graphics/libexif +.endif -USES= desktop-file-utils gmake libtool pathfix pkgconfig \ - shared-mime-info gettext-tools tar:xz -USE_GNOME= glib20 gtk20 +SLAVEDIRS= ${CATEGORIES}/${PORTNAME}-extra + +USES= gettext-tools gmake libtool pathfix pkgconfig tar:xz +USE_GNOME= glib20 USE_LDCONFIG= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --disable-static \ - --with-gtk=2 +CONFIGURE_ARGS= --sysconfdir=${LOCALBASE}/etc --disable-static CPPFLAGS+= -I${LOCALBASE}/include LIBS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip +.if ! defined(EXTRA_ONLY) +USES+= desktop-file-utils shared-mime-info +USE_GNOME+= gtk20 +CONFIGURE_ARGS+=--with-gtk=2 +.else +USE_GNOME+= intltool intlhack +CONFIGURE_ARGS+=--with-extra-only +.endif + +MICRO_VERSION= 0.3 +ABI_VERSION= 4 +PLIST_SUB+= MICRO_VERSION=${MICRO_VERSION} \ + ABI_VERSION=${ABI_VERSION} + PORTDOCS= AUTHORS NEWS README OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes + NLS_USES= gettext-runtime NLS_CONFIGURE_ENABLE= nls -OPTIONS_SUB= yes post-patch: + ${REINPLACE_CMD} -e 's|^[[:blank:]]\{5,\}USE_NLS=yes|#&|' \ + ${WRKSRC}/configure + + ${REINPLACE_CMD} -e '/^pkgincludedir/s|-@FMLIBVER@||; \ + /@LN_S@ @PACKAGE@-@FMLIBVER@/d' \ + ${WRKSRC}/src/Makefile.in + +.if ! defined(EXTRA_ONLY) ${REINPLACE_CMD} -e 's|DATA = libfm-extra.pc|DATA =|' \ ${WRKSRC}/Makefile.in + ${REINPLACE_CMD} -e '/^LIBFM_EXTRA_INCLUDES/,+4 s|^|@EXTRALIB_ONLY_TRUE@|; \ + /FALSE@lib_LTLIBRARIES/s| libfm-extra.la||; \ + s|libfm-extra.la \\|-lfm-extra \\|' \ + ${WRKSRC}/src/Makefile.in + + ${REINPLACE_CMD} -e 's|-@FMLIBVER@||' ${WRKSRC}/src/actions/Makefile.in + + ${REINPLACE_CMD} -e '/^vfs_menu_la_DEPENDENCIES/{s| \\||;n;d;}; \ + /^vfs_menu_la_LIBADD/s|$$(top.*|-lfm-extra|' \ + ${WRKSRC}/src/modules/Makefile.in + post-install: - ${MV} ${STAGEDIR}${PREFIX}/etc/xdg/libfm/libfm.conf \ - ${STAGEDIR}${PREFIX}/etc/xdg/libfm/libfm.conf.sample + ${MV} ${STAGEDIR}${PREFIX}/etc/xdg/${PORTNAME}/${PORTNAME}.conf \ + ${STAGEDIR}${PREFIX}/etc/xdg/${PORTNAME}/${PORTNAME}.conf.sample + + ${INSTALL_DATA} ${WRKSRC}/src/actions/fm-actions.h \ + ${STAGEDIR}${PREFIX}/include/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} +.endif .include Modified: head/x11/libfm/pkg-plist ============================================================================== --- head/x11/libfm/pkg-plist Sat Aug 1 10:09:19 2015 (r393392) +++ head/x11/libfm/pkg-plist Sat Aug 1 10:15:50 2015 (r393393) @@ -1,6 +1,7 @@ bin/libfm-pref-apps bin/lxshortcut @sample etc/xdg/libfm/libfm.conf.sample +include/libfm/fm-actions.h include/libfm/fm-app-chooser-combo-box.h include/libfm/fm-app-chooser-dlg.h include/libfm/fm-app-info.h @@ -67,11 +68,11 @@ 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.3 +lib/libfm-gtk.so.%%ABI_VERSION%% +lib/libfm-gtk.so.%%ABI_VERSION%%.%%MICRO_VERSION%% lib/libfm.so -lib/libfm.so.4 -lib/libfm.so.4.0.3 +lib/libfm.so.%%ABI_VERSION%% +lib/libfm.so.%%ABI_VERSION%%.%%MICRO_VERSION%% lib/libfm/modules/gtk-fileprop-x-desktop.so lib/libfm/modules/gtk-fileprop-x-shortcut.so lib/libfm/modules/gtk-menu-actions.so