[prev in list] [next in list] [prev in thread] [next in thread]
List: openpkg-cvs
Subject: [CVS] OpenPKG: openpkg-src/asymptote/ asymptote.patch asymptote.spec
From: "Ralf S. Engelschall" <rse () openpkg ! org>
Date: 2006-03-31 11:19:50
Message-ID: 20060331111950.671611B505C () master ! openpkg ! org
[Download RAW message or body]
OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: rse@openpkg.org
Module: openpkg-src Date: 31-Mar-2006 13:19:50
Branch: HEAD Handle: 2006033112195000
Added files:
openpkg-src/asymptote asymptote.patch asymptote.spec
Log:
new package: asymptote 1.03 (Vector Graphics Programming Language)
Summary:
Revision Changes Path
1.1 +57 -0 openpkg-src/asymptote/asymptote.patch
1.1 +104 -0 openpkg-src/asymptote/asymptote.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/asymptote/asymptote.patch
============================================================================
$ cvs diff -u -r0 -r1.1 asymptote.patch
--- /dev/null 2006-03-31 13:19:08 +0200
+++ asymptote.patch 2006-03-31 13:19:50 +0200
@@ -0,0 +1,57 @@
+Index: Makefile.in
+--- Makefile.in.orig 2006-03-10 20:19:57 +0100
++++ Makefile.in 2006-03-31 13:08:05 +0200
+@@ -20,8 +20,8 @@
+ NAME = asy
+ XNAME = x$(NAME)
+
+-CXX = @CXX@ -Wall -ansi
+-CC = @CC@ -Wall -ansi
++CXX = @CXX@ @CPPFLAGS@ @CXXFLAGS@
++CC = @CC@ @CPPFLAGS@ @CFLAGS@
+ MAKEDEPEND = $(OPTS) -O0 -M -DDEPEND
+ BISON = bison
+ LEX = @LEX@
+@@ -88,9 +88,9 @@
+
+ install: install-asy install-man
+
+-install-all: install-asy install-doc
++install-all: install-asy
+
+-install-asy: asy
++install-asy:
+ ${INSTALL} -d $(bindir) $(asydir) $(exampledir) $(animationsdir)
+ -${INSTALL} -d $(latexdir)
+ ${INSTALL} -s $(NAME) $(bindir)
+@@ -100,7 +100,6 @@
+ doc/*.asy doc/*.csv doc/*.dat doc/latexusage.tex $(exampledir)
+ ${INSTALL} -m644 examples/animations/*.asy $(animationsdir)
+ -${INSTALL} -m644 doc/asymptote.sty $(latexdir)
+- -texhash
+
+ install-doc: doc
+ cd doc; $(MAKE) install
+Index: doc/Makefile
+--- doc/Makefile.orig 2005-11-16 09:36:10 +0100
++++ doc/Makefile 2006-03-31 13:08:45 +0200
+@@ -4,7 +4,7 @@
+
+ doc: asymptote.dvi asymptote.info html man
+
+-man: asymptote.pdf
++man:
+
+ %.png: %.asy
+ ../asy -f png $<
+@@ -51,9 +51,8 @@
+ rm -f asymptote.{aux,cp,cps,dvi,fn,info,ky,log,pg,pdf,toc,tp,vr}
+ rm -rf asymptote
+
+-install-man: man
++install-man:
+ ${INSTALL} -d $(docdir) $(mandir)/man1
+- ${INSTALL} -m 644 asymptote.pdf $(docdir)
+ ${INSTALL} -m 644 $(MANFILES) $(mandir)/man1
+
+ install: doc install-man
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/asymptote/asymptote.spec
============================================================================
$ cvs diff -u -r0 -r1.1 asymptote.spec
--- /dev/null 2006-03-31 13:19:08 +0200
+++ asymptote.spec 2006-03-31 13:19:50 +0200
@@ -0,0 +1,104 @@
+##
+## asymptote.spec -- OpenPKG RPM Package Specification
+## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
+## Copyright (c) 2000-2006 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: asymptote
+Summary: Vector Graphics Programming Language
+URL: http://asymptote.sourceforge.net/
+Vendor: A. Hammerlindl, J. Bowman, T. Prince
+Packager: OpenPKG
+Distribution: OpenPKG
+Class: EVAL
+Group: Text
+License: GPL
+Version: 1.03
+Release: 20060331
+
+# list of sources
+Source0: http://osdn.dl.sourceforge.net/sourceforge/asymptote/asymptote-%{version}.tar.gz
+Patch0: asymptote.patch
+
+# build information
+Prefix: %{l_prefix}
+BuildRoot: %{l_buildroot}
+BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
+PreReq: OpenPKG, openpkg >= 20040130, tetex
+BuildPreReq: gc, ncurses, readline
+PreReq: gc, ncurses, readline
+AutoReq: no
+AutoReqProv: no
+
+%description
+ Asymptote is a powerful descriptive vector graphics language that
+ provides a natural coordinate-based framework for technical drawing.
+ Labels and equations are typeset with LaTeX, for high-quality
+ PostScript output.
+
+%track
+ prog asymptote = {
+ version = %{version}
+ url = http://prdownloads.sourceforge.net/asymptote/
+ regex = asymptote-(\d+\.\d+(\.\d+)*)\.tar\.gz
+ }
+
+%prep
+ %setup -q
+ %patch -p0
+
+%build
+ CC="%{l_cc}" \
+ CXX="%{l_cxx}" \
+ CFLAGS="%{l_cflags -O}" \
+ CXXFLAGS="%{l_cxxflags -O}" \
+ CPPFLAGS="%{l_cppflags gc}" \
+ LDFLAGS="%{l_ldflags}" \
+ ./configure \
+ --prefix=%{l_prefix} \
+ --with-latex=%{l_prefix}/share/texmf \
+ --enable-gc=system
+ %{l_make} %{l_mflags -O}
+
+%install
+ rm -rf $RPM_BUILD_ROOT
+ %{l_shtool} mkdir -f -p -m 755 \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1
+ %{l_make} %{l_mflags} install \
+ prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
+ latexdir=$RPM_BUILD_ROOT%{l_prefix}/share/texmf
+ mv $RPM_BUILD_ROOT%{l_prefix}/man/man1/xasy.1x \
+ $RPM_BUILD_ROOT%{l_prefix}/man/man1/xasy.1
+ mv $RPM_BUILD_ROOT%{l_prefix}/share/doc/asymptote \
+ $RPM_BUILD_ROOT%{l_prefix}/share/asymptote/doc
+ rmdir $RPM_BUILD_ROOT%{l_prefix}/share/doc
+ strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%doc %{l_prefix}/share/asymptote/doc/*'
+
+%files -f files
+
+%clean
+ rm -rf $RPM_BUILD_ROOT
+
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List openpkg-cvs@openpkg.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic