OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 27-Jan-2007 22:13:09
Branch: HEAD Handle: 2007012721130900
Added files:
openpkg-src/darcs darcs.patch darcs.spec
Log:
new package: darcs 1.0.9rc2 (Distributed Revision Control System)
Summary:
Revision Changes Path
1.1 +34 -0 openpkg-src/darcs/darcs.patch
1.1 +108 -0 openpkg-src/darcs/darcs.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/darcs/darcs.patch
============================================================================
$ cvs diff -u -r0 -r1.1 darcs.patch
--- /dev/null 2007-01-27 22:11:00 +0100
+++ darcs.patch 2007-01-27 22:13:09 +0100
@@ -0,0 +1,34 @@
+Index: GNUmakefile
+--- GNUmakefile.orig 2006-11-16 17:08:15 +0100
++++ GNUmakefile 2007-01-27 21:30:04 +0100
+@@ -113,9 +113,9 @@
+ $(INSTALL) darcs $(DESTDIR)$(bindir)
+ $(REZ_CMD) $(REZ_FLAGS) -o $(DESTDIR)$(bindir)/darcs
+
+- test -d $(DESTDIR)$(sysconfdir)/bash_completion.d || \
+- $(INSTALL) -d $(DESTDIR)$(sysconfdir)/bash_completion.d
+- $(INSTALL_DATA) darcs_completion
$(DESTDIR)$(sysconfdir)/bash_completion.d/darcs
++ test -d $(DESTDIR)$(sysconfdir)/darcs || \
++ $(INSTALL) -d $(DESTDIR)$(sysconfdir)/darcs
++ $(INSTALL_DATA) darcs_completion
$(DESTDIR)$(sysconfdir)/darcs/darcs.bashrc
+
+ test -d $(DESTDIR)$(mandir)/man1 || \
+ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
+@@ -132,14 +132,14 @@
+ $(INSTALL_DATA) zsh_completion_old
$(DESTDIR)$(datadir)/doc/darcs/examples/
+
+ installserver: cgi/darcs.cgi
+- test -d $(DESTDIR)$(libexecdir)/cgi-bin || \
+- $(INSTALL) -d $(DESTDIR)$(libexecdir)/cgi-bin
++ test -d $(DESTDIR)$(prefix)/cgi || \
++ $(INSTALL) -d $(DESTDIR)$(prefix)/cgi
+
+ test -d $(DESTDIR)$(sysconfdir)/darcs || \
+ $(INSTALL) -d $(DESTDIR)$(sysconfdir)/darcs
+ test -e $(DESTDIR)$(sysconfdir)/darcs/cgi.conf || \
+ $(INSTALL_DATA) cgi/cgi.conf $(DESTDIR)$(sysconfdir)/darcs/cgi.conf
+- $(INSTALL) cgi/darcs.cgi $(DESTDIR)$(libexecdir)/cgi-bin/darcs.cgi
++ $(INSTALL) cgi/darcs.cgi $(DESTDIR)$(prefix)/cgi/darcs.cgi
+ test -d $(DESTDIR)$(datadir)/darcs || \
+ $(INSTALL) -d $(DESTDIR)$(datadir)/darcs
+ test -d $(DESTDIR)$(datadir)/darcs/xslt || \
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/darcs/darcs.spec
============================================================================
$ cvs diff -u -r0 -r1.1 darcs.spec
--- /dev/null 2007-01-27 22:11:00 +0100
+++ darcs.spec 2007-01-27 22:13:09 +0100
@@ -0,0 +1,108 @@
+##
+## darcs.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2007 Ralf S. Engelschall <http://engelschall.com/>
+##
+## Permission to use, copy, modify, and distribute this software for
+## any purpose with or without fee is hereby granted, provided that
+## the above copyright notice and this permission notice appear in all
+## copies.
+##
+## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+## SUCH DAMAGE.
+##
+
+# package information
+Name: darcs
+Summary: Distributed Revision Control System
+URL: http://darcs.net/
+Vendor: David Roundy
+Packager: OpenPKG Foundation e.V.
+Distribution: OpenPKG Community
+Class: EVAL
+Group: SCM
+License: GPL/LGPL
+Version: 1.0.9rc2
+Release: 20070127
+
+# package options
+%option with_git no
+
+# list of sources
+Source0: http://darcs.net/darcs-%{version}.tar.gz
+Patch0: darcs.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, ghc
+PreReq: OpenPKG, openpkg >= 20040130
+BuildPreReq: curl
+PreReq: curl
+%if "%{with_git}" == "yes"
+BuildPreReq: git
+PreReq: git
+%endif
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Darcs is a distributed, interactive and smart revision control
+ system. Darcs is based on a unique algebra of patches and allows
+ so-called "spontaneous branches".
+
+%track
+ prog darcs = {
+ version = %{version}
+ url = http://abridgegame.org/darcs/
+ regex = darcs-(__VER__)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CFLAGS="%{l_cflags -O}" \
+ CPPFLAGS="%{l_cppflags}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --enable-color \
+ --with-libcurl \
+%if "%{with_git}" == "yes"
+ --enable-git \
+ --with-git-includes="%{l_cppflags}" \
+%else
+ --disable-git \
+%endif
+ --without-curses \
+ --without-wx \
+ --without-docs \
+ --with-static-libs
+ %{l_make} %{l_mflags}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_make} %{l_mflags} install installserver DESTDIR=$RPM_BUILD_ROOT
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%config %{l_prefix}/etc/darcs/*'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
OpenPKG http://openpkg.org
CVS Repository Commit List [email protected]