View | Details | Raw Unified | Return to bug 207399
Collapse All | Expand All

(-)Makefile (-2 / +18 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	pgadmin3
4
PORTNAME=	pgadmin3
5
PORTVERSION=	1.22.1
5
PORTVERSION=	1.22.1
6
PORTREVISION=	0
6
PORTREVISION=	1
7
CATEGORIES=	databases
7
CATEGORIES=	databases
8
MASTER_SITES=	PGSQL/pgadmin3/release/v${PORTVERSION}/src
8
MASTER_SITES=	PGSQL/pgadmin3/release/v${PORTVERSION}/src
9
DIST_SUBDIR=	postgresql
9
DIST_SUBDIR=	postgresql
Lines 21-28 Link Here
21
USE_GNOME=	libxml2 libxslt
21
USE_GNOME=	libxml2 libxslt
22
USE_WX=		2.8
22
USE_WX=		2.8
23
WX_COMPS=	wx contrib
23
WX_COMPS=	wx contrib
24
ICON_SIZES=	16 32
24
25
25
PLIST_FILES=	bin/pgadmin3
26
PLIST_FILES=	bin/pgadmin3 share/applications/pgadmin3.desktop
27
.for SZ in ${ICON_SIZES}
28
PLIST_FILES+=	share/icons/hicolor/${SZ}x${SZ}/apps/pgAdmin3.png
29
.endfor
26
PORTDATA=	*
30
PORTDATA=	*
27
31
28
post-patch:
32
post-patch:
Lines 30-34 Link Here
30
	@${REINPLACE_CMD} -e 's,wxrc,wxrc-gtk2u-2.8,' ${WRKSRC}/pgadmin/ui/embed-xrc
34
	@${REINPLACE_CMD} -e 's,wxrc,wxrc-gtk2u-2.8,' ${WRKSRC}/pgadmin/ui/embed-xrc
31
	@${REINPLACE_CMD} -e 's,/usr/bin/xterm,${LOCALBASE}/bin/xterm,' ${WRKSRC}/plugins.d/plugins.ini
35
	@${REINPLACE_CMD} -e 's,/usr/bin/xterm,${LOCALBASE}/bin/xterm,' ${WRKSRC}/plugins.d/plugins.ini
32
	@${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/pgadmin/ver_svn.sh
36
	@${REINPLACE_CMD} -e 's,/bin/bash,/bin/sh,' ${WRKSRC}/pgadmin/ver_svn.sh
37
	@${REINPLACE_CMD} -e 's,Exec=/usr/bin/pgadmin3,Exec=pgadmin3,' ${WRKSRC}/pkg/pgadmin3.desktop
38
	@${REINPLACE_CMD} -e 's,Icon=/usr/share/pgadmin3/pgAdmin3.png,Icon=pgAdmin3,' ${WRKSRC}/pkg/pgadmin3.desktop
39
	@${REINPLACE_CMD} -e '/^MimeType=/d' ${WRKSRC}/pkg/pgadmin3.desktop
40
	@${REINPLACE_CMD} -e '/^DocPath=/d' ${WRKSRC}/pkg/pgadmin3.desktop
33
41
42
post-install:
43
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/applications
44
	@${INSTALL_DATA} ${WRKSRC}/pkg/pgadmin3.desktop ${STAGEDIR}${PREFIX}/share/applications
45
.for SZ in ${ICON_SIZES}
46
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps
47
	@${INSTALL_DATA} -v -m 644 ${WRKSRC}/pgadmin/include/images/pgAdmin3-${SZ}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${SZ}x${SZ}/apps/pgAdmin3.png
48
.endfor
49
34
.include <bsd.port.mk>
50
.include <bsd.port.mk>

Return to bug 207399