diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-15 13:36:40 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2004-08-15 13:36:40 +0000 |
commit | d7d1aee1f11587ba900b29134b084a0b099fd9c7 (patch) | |
tree | 1898fca872701095f82175cb783d073b72fd508d /devel/esvn | |
parent | 8799d36859a75337e9bcaa6b85008534f45137c4 (diff) | |
download | ports-d7d1aee1f11587ba900b29134b084a0b099fd9c7.tar.gz ports-d7d1aee1f11587ba900b29134b084a0b099fd9c7.zip |
Notes
Diffstat (limited to 'devel/esvn')
-rw-r--r-- | devel/esvn/Makefile | 50 | ||||
-rw-r--r-- | devel/esvn/distinfo | 2 | ||||
-rw-r--r-- | devel/esvn/files/patch-src-entries_parser.h | 20 | ||||
-rw-r--r-- | devel/esvn/files/patch-src-mainwindow.cpp | 28 | ||||
-rw-r--r-- | devel/esvn/pkg-descr | 4 |
5 files changed, 104 insertions, 0 deletions
diff --git a/devel/esvn/Makefile b/devel/esvn/Makefile new file mode 100644 index 000000000000..21c259e7f16e --- /dev/null +++ b/devel/esvn/Makefile @@ -0,0 +1,50 @@ +# New ports collection Makefile for: esvn +# Date created: 9 August 2004 +# Whom: Andrej Zverev (az@inec.ru) +# +# $FreeBSD$ +# + +PORTNAME= esvn +PORTVERSION= 0.4.7 +CATEGORIES= devel +MASTER_SITES= http://esvn.umputun.com/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-2 + +MAINTAINER= az@inec.ru +COMMENT= GUI frontend for the Subversion revision system + +BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake +RUN_DEPENDS= svn:${PORTSDIR}/devel/subversion + +ESVN_DIST= esvn + +WRKSRC= ${WRKDIR}/${ESVN_DIST} + +USE_REINPLACE= yes +HAS_CONFIGURE= yes +USE_QT_VER= 3 +USE_GMAKE= yes +USE_X_PREFIX= yes +CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ +CONFIGURE_ARGS= --qtdir=${X11BASE} +MAKE_ARGS+= QTDIR=${X11BASE} \ + QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ + +PLIST_FILES= bin/esvn + +.include <bsd.port.pre.mk> + +do-configure: + cd ${WRKSRC}; \ + ${SETENV} ${CONFIGURE_ENV} ${LOCALBASE}/bin/qmake -spec ${LOCALBASE}/share/qt/mkspecs/freebsd-g++ esvn.pro + +post-configure: +.if exists(/boot/modules/nvidia.ko) && ${OSVERSION} > 502122 + ${REINPLACE_CMD} -e 's#-lpthread#-lc_r#' ${WRKSRC}/Makefile +.endif + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/esvn ${PREFIX}/bin + +.include <bsd.port.post.mk> diff --git a/devel/esvn/distinfo b/devel/esvn/distinfo new file mode 100644 index 000000000000..17bdd2e2d8b3 --- /dev/null +++ b/devel/esvn/distinfo @@ -0,0 +1,2 @@ +MD5 (esvn-0.4.7-2.tar.gz) = 3a1461b2df467182e8dc196719f05f4d +SIZE (esvn-0.4.7-2.tar.gz) = 266423 diff --git a/devel/esvn/files/patch-src-entries_parser.h b/devel/esvn/files/patch-src-entries_parser.h new file mode 100644 index 000000000000..4e341adc87bc --- /dev/null +++ b/devel/esvn/files/patch-src-entries_parser.h @@ -0,0 +1,20 @@ +--- src/entries_parser.h.orig Sun Aug 15 16:14:54 2004 ++++ src/entries_parser.h Sun Aug 15 16:15:04 2004 +@@ -20,6 +20,8 @@ + #include <qstring.h> + #include <qdir.h> + ++#include <sys/types.h> ++#include <time.h> + #include <map> + #include <iostream> + +@@ -116,7 +118,7 @@ + #if (__FreeBSD__ || __NetBSD__ || __OpenBSD__ || ESVN_BSD) + time_t a; a = time(NULL); + struct tm bsd_hack = *localtime(&a); +- result = ret.addSecs(-(bsd_hack.tm_gmtoff - bsd_hack.tm_isdst*3600) ); ++ result = result.addSecs(-(bsd_hack.tm_gmtoff - bsd_hack.tm_isdst*3600) ); + #else + result = result.addSecs(-(timezone - daylight*3600)); + #endif diff --git a/devel/esvn/files/patch-src-mainwindow.cpp b/devel/esvn/files/patch-src-mainwindow.cpp new file mode 100644 index 000000000000..8ebed21dd72d --- /dev/null +++ b/devel/esvn/files/patch-src-mainwindow.cpp @@ -0,0 +1,28 @@ +--- src/mainwindow.cpp.orig Sun Aug 15 16:11:59 2004 ++++ src/mainwindow.cpp Sun Aug 15 16:12:07 2004 +@@ -14,6 +14,7 @@ + * * + ***************************************************************************/ + ++#include <unistd.h> + #include "mainwindow.h" + + #include <qlistview.h> +@@ -441,7 +442,7 @@ + QListViewItem *selected_item = list_files->selectedItem(); + + bool was_selected = (selected_item != 0); +- QString file_name = was_selected ? selected_item->text(0) : ""; ++ QString file_name = was_selected ? selected_item->text(0) : (QString)""; + + C_FilesList file_list; + file_list.load(selected_path_, list_files, hide_unknown_); +@@ -635,7 +636,7 @@ + + int res = svn_commands_->cat(workingFileDir(), rev, file2); + if (res == 0) { +- QString rev_str = (rev == "") ? "last" : rev; ++ QString rev_str = (rev == "") ? (QString)"last" : rev; + diff_tmp_file_ = workingFileDir()+".r_" + rev_str; + FILE *fh_tmp = fopen(diff_tmp_file_.local8Bit(), "wb"); + if (fh_tmp != NULL) { diff --git a/devel/esvn/pkg-descr b/devel/esvn/pkg-descr new file mode 100644 index 000000000000..ff81a2105632 --- /dev/null +++ b/devel/esvn/pkg-descr @@ -0,0 +1,4 @@ +eSvn is a cross-platform (QT-based) GUI frontend +for the Subversion revision system. + +WWW: http://esvn.umputun.com |