openbsd-ports/devel/nant/patches/patch-NAnt_build
2010-05-09 21:57:09 +00:00

50 lines
2.4 KiB
Plaintext

$OpenBSD: patch-NAnt_build,v 1.2 2010/05/09 21:57:09 robert Exp $
--- NAnt.build.orig Sat May 8 14:12:26 2010
+++ NAnt.build Sat May 8 15:53:10 2010
@@ -860,6 +860,7 @@
<property name="install.prefix" value="${prefix}" />
</if>
<property name="install.share" value="${path::combine(install.prefix, 'share')}" />
+ <property name="install.doc" value="${path::combine (install.share, 'doc')}" />
<property name="install.nant" value="${path::combine (install.share, 'NAnt')}" />
<!-- support staged installs -->
@@ -868,6 +869,7 @@
<property name="install.destdir" value="${destdir}" />
</if>
<property name="install.bindir" value="${install.destdir + path::combine(install.prefix, 'bin')}" />
+ <property name="install.docdir" value="${install.destdir + path::combine(install.doc, 'NAnt')}" />
<property name="install.pkgconfigdir" value="${install.destdir + path::combine(install.prefix, 'lib/pkgconfig')}" />
<property name="install.copylocation" value="${install.destdir + install.nant}" />
@@ -876,13 +878,19 @@
<copy todir="${install.copylocation}" overwrite="true">
<fileset basedir="${build.dir}">
<include name="bin/**/*" />
- <include name="doc/**/*" />
<exclude name="bin/nant.tests.config" />
<exclude name="bin/*.Tests.*" />
</fileset>
</copy>
+ <mkdir dir="${install.docdir}" />
+ <copy todir="${install.docdir}" overwrite="true">
+ <fileset basedir=".">
+ <include name="doc/**/*" />
+ </fileset>
+ </copy>
+
<mkdir dir="${install.pkgconfigdir}" />
<copy file="etc/nant.pc.in" tofile="${install.pkgconfigdir}/nant.pc">
<filterchain>
@@ -901,7 +909,7 @@
the wrapper is created
-->
<echo file="${wrapper}" append="false">#!/bin/sh${environment::newline()}</echo>
- <echo file="${wrapper}" append="true">exec ${path::combine(install.prefix, 'bin')}/mono ${path::combine(install.nant, 'bin')}/NAnt.exe "$@"</echo>
+ <echo file="${wrapper}" append="true">exec ${path::combine(install.trueprefix, 'bin')}/mono ${path::combine(install.vprefix, 'bin')}/NAnt.exe "$@"</echo>
<exec program="chmod" commandline="a+x ${path::combine(install.bindir, 'nant')}" />
</target>
<target name="rpm" depends="init, build">