aboutsummaryrefslogtreecommitdiff
path: root/x11/roxterm
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-03-24 16:20:59 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-03-24 16:20:59 +0000
commit3d12f822ff8229d7c558716b4349e1f95e518f91 (patch)
tree1380328fa978443d49c7a95f216a6157d0081585 /x11/roxterm
parentc0d1426dd4ae523ed4e9e1743a6fe8781d2f252f (diff)
downloadports-3d12f822ff8229d7c558716b4349e1f95e518f91.tar.gz
ports-3d12f822ff8229d7c558716b4349e1f95e518f91.zip
Notes
Diffstat (limited to 'x11/roxterm')
-rw-r--r--x11/roxterm/Makefile79
-rw-r--r--x11/roxterm/distinfo4
-rw-r--r--x11/roxterm/pkg-plist2
3 files changed, 50 insertions, 35 deletions
diff --git a/x11/roxterm/Makefile b/x11/roxterm/Makefile
index 04ac71de3ee9..025652003314 100644
--- a/x11/roxterm/Makefile
+++ b/x11/roxterm/Makefile
@@ -1,13 +1,8 @@
-# New ports collection makefile for: roxterm
-# Date created: 19 Jun 2007
-# Whom: Yinghong Liu <relaxbsd@gmail.com>
-#
+# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
-#
PORTNAME= roxterm
-PORTVERSION= 2.2.2
-PORTREVISION= 1
+PORTVERSION= 2.6.5
CATEGORIES= x11
MASTER_SITES= SF
@@ -16,45 +11,65 @@ COMMENT= GTK+ 2.0 terminal emulator with tabs
LICENSE= GPLv3
-BUILD_DEPENDS= ${LOCALBASE}/share/xsl/docbook/manpages/docbook.xsl:${PORTSDIR}/textproc/docbook-xsl \
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lockfile>0:${PORTSDIR}/devel/py-lockfile \
+ docbook-xsl>0:${PORTSDIR}/textproc/docbook-xsl \
xsltproc:${PORTSDIR}/textproc/libxslt
LIB_DEPENDS= dbus-glib-1:${PORTSDIR}/devel/dbus-glib
-USE_XORG= sm ice
+OPTIONS_DEFINE= DOCS
+
+USE_BZIP2= yes
USE_GNOME= libglade2 vte
+USE_PYTHON_BUILD= yes
USE_GETTEXT= yes
-USE_GMAKE= yes
-USE_PKGCONFIG= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ENV= ac_cv_prog_HAVE_XMLTO=no ac_cv_prog_HAVE_PO4A=no
+USE_PKGCONFIG= build
+USE_AUTOTOOLS= libtool:env
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes
MAN1= roxterm.1 \
roxterm-config.1
+MAITCHFLAGS= CC=${CC};CPP=${CC};CFLAGS=${CFLAGS};PARALLEL=${_make_jobs}
+
+.include <bsd.port.options.mk>
+
+.if !defined(DISABLE_MAKE_JOBS)
+_make_jobs= ${MAKE_JOBS_NUMBER}
+.endif
+
post-patch:
-.for file in Makefile.in po4a/Makefile.in
- @${REINPLACE_CMD} -e '/^install-data-am:/s|install-data-local||g' \
- ${WRKSRC}/${file}
-.endfor
-.for file in src/Makefile.in
- @${REINPLACE_CMD} -e '/roxterm-config.ui/s|-i |-i.orig |g' \
- ${WRKSRC}/${file}
-.endfor
-
-post-install:
+ @${REINPLACE_CMD} -e \
+ 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/maitch.py
+
+do-configure:
+ @(cd ${WRKSRC} && ${SETENV} MAITCHFLAGS="${MAITCHFLAGS}" \
+ ${PYTHON_CMD} mscript.py configure --prefix=${PREFIX} \
+ --disable-gtk3 --disable-po4a --disable-git)
+
+do-build:
+ @(cd ${WRKSRC} && ${PYTHON_CMD} mscript.py build \
+ && ${PYTHON_CMD} mscript.py install)
+
+do-install:
+ (cd ${WRKSRC}/build/usr/local/bin \
+ && ${INSTALL_PROGRAM} * ${PREFIX}/bin)
+ (cd ${WRKSRC}/build/usr/local/share/man/man1 \
+ && ${INSTALL_MAN} * ${MANPREFIX}/man/man1)
+ @${MKDIR} ${DATADIR}
+ @(cd ${WRKSRC}/build/usr/local/share/roxterm \
+ && ${COPYTREE_SHARE} . ${DATADIR})
+ @${MKDIR} ${DESKTOPDIR}
+ (cd ${WRKSRC}/build/usr/local/share/applications \
+ && ${INSTALL_DATA} * ${DESKTOPDIR})
@${MKDIR} ${PREFIX}/share/icons/hicolor/scalable/apps
- ${INSTALL_DATA} ${WRKSRC}/roxterm.svg \
- ${PREFIX}/share/icons/hicolor/scalable/apps
-.if !defined(NOPORTDOCS)
+ (cd ${WRKSRC}/build/usr/local/share/icons/hicolor/scalable/apps \
+ && ${INSTALL_DATA} * \
+ ${PREFIX}/share/icons/hicolor/scalable/apps)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS Changes README
- ${INSTALL_DATA} ${WRKSRC}/Help/${file} ${DOCSDIR}
-.endfor
-.for dir in en lib
- @(cd ${WRKSRC}/Help && ${COPYTREE_SHARE} ${dir} ${DOCSDIR})
-.endfor
+ @(cd ${WRKSRC}/build/usr/local/share/doc/roxterm \
+ && ${COPYTREE_SHARE} . ${DOCSDIR})
.endif
.include <bsd.port.mk>
diff --git a/x11/roxterm/distinfo b/x11/roxterm/distinfo
index e87851d71339..24fc1d8df9a8 100644
--- a/x11/roxterm/distinfo
+++ b/x11/roxterm/distinfo
@@ -1,2 +1,2 @@
-SHA256 (roxterm-2.2.2.tar.gz) = 3c01daa2ee3c0e652653804ca6466a9d18cabe481660b759148e7d7ffadb4a94
-SIZE (roxterm-2.2.2.tar.gz) = 931976
+SHA256 (roxterm-2.6.5.tar.bz2) = e8b2dd5ce320b763b66590ebef77c422ab90181bb1a84d30fea8c47da0d46cab
+SIZE (roxterm-2.6.5.tar.bz2) = 300892
diff --git a/x11/roxterm/pkg-plist b/x11/roxterm/pkg-plist
index 63f11e728342..6138a17f1ea4 100644
--- a/x11/roxterm/pkg-plist
+++ b/x11/roxterm/pkg-plist
@@ -2,7 +2,7 @@ bin/roxterm
bin/roxterm-config
share/applications/roxterm.desktop
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
-%%PORTDOCS%%%%DOCSDIR%%/Changes
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/en/guide.html
%%PORTDOCS%%%%DOCSDIR%%/en/index.html