esvn stable port information

Package: esvn
Version: 0.6.11
Revision: 12
Description: GUI frontend for Subversion (QT-based)
License: GPL
Maintainer: Christian Schaffner

# Dependencies:
BuildDepends: qt3 (>= 3.3.3-1000), x11-dev
Depends: svn-client (>= 1.4.0-1), qt3-shlibs (>= 3.3.6-1000), x11
Recommends: launch, tkdiff

# Unpack Phase:
Source: http://esvn.umputun.com/%n-%v-1.tar.gz
Source-MD5: 2ded6a349fc8692631f781bbb475fadc
SourceDirectory: %n

#Patch Phase:
PatchScript:<<
patch -p1 < %a/%n.patch
perl -pi.bak -e 's|\/usr\/share\/doc\/esvn\/html\-docs|%p\/share\/doc\/esvn\/html\-docs|g' src/mainwindow.cpp
<<

# Compile Phase:
GCC: 4.0
CompileScript: <<
make QTDIR=%p/lib/qt3
<<

# Install Phase:
DocFiles: AUTHORS COPYING ChangeLog LICENSE README
InstallScript: <<
### Install esvn
/usr/bin/install -d %i/bin
/usr/bin/install -d %i/share
/usr/bin/install -d %i/share/pixmaps
/usr/bin/install -d %i/share/applications
/usr/bin/install -m 755 esvn %i/bin/esvn
#install -m644 esvn.pdf %i/share/doc/esvn/esvn.pdf
/usr/bin/install -m 755 esvn-diff-wrapper %i/bin/esvn-diff-wrapper
/usr/bin/install -m 644 esvn.png %i/share/pixmaps/esvn.png
/usr/bin/install -m 644 eSvn.desktop %i/share/applications/eSvn.desktop

### Install esvn docu
/usr/bin/install -d %i/share/doc
/usr/bin/install -d %i/share/doc/%n
cp -r html-docs %i/share/doc/%n
<<

# Additional Info
DescDetail: <<
eSvn is a Graphical User Interface (GUI) to the subversion revision
management system.
<<
DescUsage: <<
The help files are installed at
/sw/share/doc/esvn/html-docs/index.html

In the options dialog you could set as Browser 'launch' and as Diff
'tkdiff'. Both utilies are available from Fink.
<<
DescPort: <<
entries_parser.cpp needs to be patched since timezone is not defined
as a number on darwin, need to use localtime_r->tm_gmtoff instead.
Also some patching of includes for frm_main.cpp is needed.
<<
Homepage: http://esvn.umputun.com/

esvn stable port .patch

diff -Naur esvn_orig/src/entries_parser.cpp esvn/src/entries_parser.cpp
--- esvn_orig/src/entries_parser.cpp 2006-11-17 11:54:01.000000000 -0600
+++ esvn/src/entries_parser.cpp 2006-11-16 16:18:12.000000000 -0600
@@ -299,8 +299,16 @@
#if (_WINDOWS || ESVN_WIN )
utc_time -= _timezone;
#else
+#if (__DARWIN_X11__)
+ struct tm newtime;
+ time_t thetime;
+ time(&thetime);
+ localtime_r(&thetime, &newtime);
+ utc_time -= newtime.tm_gmtoff;
+#else
utc_time -= timezone;
#endif
+#endif

#endif

diff -Naur esvn_orig/esvn.pro esvn/esvn.pro
--- esvn_orig/esvn.pro 2006-11-17 12:03:23.000000000 -0600
+++ esvn/esvn.pro 2006-11-17 12:28:52.000000000 -0600
@@ -268,6 +268,7 @@
MOC_DIR = .moc
OBJECTS_DIR = .obj
DEFINES+= VERSION=\"$$VER\"
+ INCLUDEPATH = src/
}

win32 {
diff -Naur esvn_orig/.ui/frm_main.ui esvn/.ui/frm_main.ui
--- esvn_orig/.ui/frm_main.ui 2006-11-17 12:34:39.000000000 -0600
+++ esvn/.ui/frm_main.ui 2006-11-17 12:39:40.000000000 -0600
@@ -945,7 +945,6 @@


Cmd_LineEdit
-

src/cmd_lineedit.h


-1
-1
@@ -3006,7 +3005,4 @@



-
- cmd_lineedit.h
-


esvn _unstable_ port information

Package: esvn
Version: 0.6.11
Revision: 12
Description: GUI frontend for Subversion (QT-based)
License: GPL
Maintainer: Christian Schaffner

# Dependencies:
BuildDepends: qt3 (>= 3.3.3-1000), x11-dev
Depends: svn-client (>= 1.4.0-1), qt3-shlibs (>= 3.3.6-1000), x11
Recommends: launch, tkdiff

# Unpack Phase:
Source: http://esvn.umputun.com/%n-%v-1.tar.gz
Source-MD5: 2ded6a349fc8692631f781bbb475fadc
SourceDirectory: %n

#Patch Phase:
PatchScript:<<
patch -p1 < %a/%n.patch
perl -pi.bak -e 's|\/usr\/share\/doc\/esvn\/html\-docs|%p\/share\/doc\/esvn\/html\-docs|g' src/mainwindow.cpp
<<

# Compile Phase:
GCC: 4.0
CompileScript: <<
make QTDIR=%p/lib/qt3
<<

# Install Phase:
DocFiles: AUTHORS COPYING ChangeLog LICENSE README
InstallScript: <<
### Install esvn
/usr/bin/install -d %i/bin
/usr/bin/install -d %i/share
/usr/bin/install -d %i/share/pixmaps
/usr/bin/install -d %i/share/applications
/usr/bin/install -m 755 esvn %i/bin/esvn
#install -m644 esvn.pdf %i/share/doc/esvn/esvn.pdf
/usr/bin/install -m 755 esvn-diff-wrapper %i/bin/esvn-diff-wrapper
/usr/bin/install -m 644 esvn.png %i/share/pixmaps/esvn.png
/usr/bin/install -m 644 eSvn.desktop %i/share/applications/eSvn.desktop

### Install esvn docu
/usr/bin/install -d %i/share/doc
/usr/bin/install -d %i/share/doc/%n
cp -r html-docs %i/share/doc/%n
<<

# Additional Info
DescDetail: <<
eSvn is a Graphical User Interface (GUI) to the subversion revision
management system.
<<
DescUsage: <<
The help files are installed at
/sw/share/doc/esvn/html-docs/index.html

In the options dialog you could set as Browser 'launch' and as Diff
'tkdiff'. Both utilies are available from Fink.
<<
DescPort: <<
entries_parser.cpp needs to be patched since timezone is not defined
as a number on darwin, need to use localtime_r->tm_gmtoff instead.
Also some patching of includes for frm_main.cpp is needed.
<<
Homepage: http://esvn.umputun.com/

esvn _unstable_ port .patch

diff -Naur esvn_orig/src/entries_parser.cpp esvn/src/entries_parser.cpp
--- esvn_orig/src/entries_parser.cpp 2006-11-17 11:54:01.000000000 -0600
+++ esvn/src/entries_parser.cpp 2006-11-16 16:18:12.000000000 -0600
@@ -299,8 +299,16 @@
#if (_WINDOWS || ESVN_WIN )
utc_time -= _timezone;
#else
+#if (__DARWIN_X11__)
+ struct tm newtime;
+ time_t thetime;
+ time(&thetime);
+ localtime_r(&thetime, &newtime);
+ utc_time -= newtime.tm_gmtoff;
+#else
utc_time -= timezone;
#endif
+#endif

#endif

diff -Naur esvn_orig/esvn.pro esvn/esvn.pro
--- esvn_orig/esvn.pro 2006-11-17 12:03:23.000000000 -0600
+++ esvn/esvn.pro 2006-11-17 12:28:52.000000000 -0600
@@ -268,6 +268,7 @@
MOC_DIR = .moc
OBJECTS_DIR = .obj
DEFINES+= VERSION=\"$$VER\"
+ INCLUDEPATH = src/
}

win32 {
diff -Naur esvn_orig/.ui/frm_main.ui esvn/.ui/frm_main.ui
--- esvn_orig/.ui/frm_main.ui 2006-11-17 12:34:39.000000000 -0600
+++ esvn/.ui/frm_main.ui 2006-11-17 12:39:40.000000000 -0600
@@ -945,7 +945,6 @@


Cmd_LineEdit
-

src/cmd_lineedit.h


-1
-1
@@ -3006,7 +3005,4 @@



-
- cmd_lineedit.h
-