Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Feb 2016 09:25:27 +0000 (UTC)
From:      Max Khon <fjoe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r409500 - head/databases/pgadmin3
Message-ID:  <201602250925.u1P9PRCK073485@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fjoe
Date: Thu Feb 25 09:25:27 2016
New Revision: 409500
URL: https://svnweb.freebsd.org/changeset/ports/409500

Log:
  - Install pgadmin3.desktop desktop entry and icons
  (16x16 and 32x32 that are present in src tarball)
  - Bump PORTREVISION to reflect package changes.
  
  PR:		207399
  Submitted by:	Dmitri Goutnik

Modified:
  head/databases/pgadmin3/Makefile

Modified: head/databases/pgadmin3/Makefile
==============================================================================
--- head/databases/pgadmin3/Makefile	Thu Feb 25 07:39:30 2016	(r409499)
+++ head/databases/pgadmin3/Makefile	Thu Feb 25 09:25:27 2016	(r409500)
@@ -3,7 +3,7 @@
 
 PORTNAME=	pgadmin3
 PORTVERSION=	1.22.1
-PORTREVISION=	0
+PORTREVISION=	1
 CATEGORIES=	databases
 MASTER_SITES=	PGSQL/pgadmin3/release/v${PORTVERSION}/src
 DIST_SUBDIR=	postgresql
@@ -21,8 +21,12 @@ CONFIGURE_ARGS=	--with-wx-version=${USE_
 USE_GNOME=	libxml2 libxslt
 USE_WX=		2.8
 WX_COMPS=	wx contrib
+ICON_SIZES=	16 32
 
-PLIST_FILES=	bin/pgadmin3
+PLIST_FILES=	bin/pgadmin3 share/applications/pgadmin3.desktop
+.for SZ in ${ICON_SIZES}
+PLIST_FILES+=	share/icons/hicolor/${SZ}x${SZ}/apps/pgAdmin3.png
+.endfor
 PORTDATA=	*
 
 post-patch:
@@ -30,5 +34,18 @@ post-patch:
 	@${REINPLACE_CMD} -e 's,wxrc,wxrc-gtk2u-2.8,' ${WRKSRC}/pgadmin/ui/embed-xrc
 	@${REINPLACE_CMD} -e 's,/usr/bin/xterm,${LOCALBASE}/bin/xterm,' ${WRKSRC}/plugins.d/plugins.ini
 	@${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/pgadmin/ver_svn.sh
+	@${REINPLACE_CMD} -e 's,Exec=/usr/bin/pgadmin3,Exec=${LOCALBASE}/bin/pgadmin3,'\
+			  -e 's,Icon=/usr/share/pgadmin3/pgAdmin3.png,Icon=pgAdmin3,'\
+			  -e '/^MimeType=/d'\
+			  -e '/^DocPath=/d'\
+		${WRKSRC}/pkg/pgadmin3.desktop
+
+post-install:
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
+	${INSTALL_DATA} ${WRKSRC}/pkg/pgadmin3.desktop ${STAGEDIR}${PREFIX}/share/applications
+.for SZ in ${ICON_SIZES}
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps
+	${INSTALL_DATA} ${WRKSRC}/pgadmin/include/images/pgAdmin3-${SZ}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/pgAdmin3.png
+.endfor
 
 .include <bsd.port.mk>



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