Relocate the vcs tools to match changes in portage

This commit is contained in:
Chris Roberts
2010-07-20 04:41:26 +00:00
parent 51324b4394
commit 9bb6e9a43e
27 changed files with 0 additions and 0 deletions

View File

@@ -1,58 +0,0 @@
diff -urN cvs-1.12.13/configure cvs-1.12.13-haiku/configure
--- cvs-1.12.13/configure 2005-10-03 13:36:42.000000000 +0000
+++ cvs-1.12.13-haiku/configure 2008-09-30 18:38:24.000000000 +0000
@@ -37138,7 +37138,7 @@
rm -f conftest.err conftest.$ac_objext \
conftest$ac_exeext conftest.$ac_ext
if test "$ac_cv_search_connect" = no; then
- for ac_lib in xnet socket inet; do
+ for ac_lib in xnet socket network inet; do
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
diff -urN cvs-1.12.13/configure.in cvs-1.12.13-haiku/configure.in
--- cvs-1.12.13/configure.in 2005-10-03 13:34:45.000000000 +0000
+++ cvs-1.12.13-haiku/configure.in 2008-09-30 18:38:24.000000000 +0000
@@ -515,7 +515,7 @@
# Try to find connect and gethostbyname.
AC_CHECK_LIB(nsl, main)
-AC_SEARCH_LIBS(connect, xnet socket inet,
+AC_SEARCH_LIBS(connect, xnet socket network inet,
AC_DEFINE(HAVE_CONNECT, 1,
[Define if you have the connect function.]))
dnl no need to search nsl for gethostbyname here since we should have
diff -urN cvs-1.12.13/lib/getaddrinfo.h cvs-1.12.13-haiku/lib/getaddrinfo.h
--- cvs-1.12.13/lib/getaddrinfo.h 2005-09-08 15:55:53.000000000 +0000
+++ cvs-1.12.13-haiku/lib/getaddrinfo.h 2008-09-30 19:33:49.000000000 +0000
@@ -26,7 +26,7 @@
# include <netdb.h>
# if !HAVE_GETADDRINFO
-
+#ifndef __HAIKU__
/* Structure to contain information about address of a service provider. */
struct addrinfo
{
@@ -61,6 +61,8 @@
# define EAI_ADDRFAMILY -9 /* Address family for NAME not supported. */
# define EAI_MEMORY -10 /* Memory allocation failure. */
# define EAI_SYSTEM -11 /* System error returned in `errno'. */
+#endif
+
# define EAI_OVERFLOW -12 /* Argument buffer overflow. */
# ifdef __USE_GNU
# define EAI_INPROGRESS -100 /* Processing request in progress. */
diff -urN cvs-1.12.13/lib/getpass.c cvs-1.12.13-haiku/lib/getpass.c
--- cvs-1.12.13/lib/getpass.c 2005-09-19 21:12:21.000000000 +0000
+++ cvs-1.12.13-haiku/lib/getpass.c 2008-09-30 19:53:05.000000000 +0000
@@ -104,8 +104,9 @@
else
{
/* We do the locking ourselves. */
+#ifdef __HAIKU__
__fsetlocking (tty, FSETLOCKING_BYCALLER);
-
+#endif
out = in = tty;
}

View File

@@ -1,21 +0,0 @@
DESCRIPTION="CVS is a version control system"
HOMEPAGE="http://www.nongnu.org/cvs/"
SRC_URI="http://www.haiku-ports.de/packages/dev-util/cvs/sources/cvs-1.12.13.1.tar.bz2"
CHECKSUM_MD5="cfd07b224956daaed53fb3063bece1bf"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd cvs-1.12.13.1
libtoolize --force --copy --install
./configure --prefix=/boot/common --enable-rootcommit
make
}
INSTALL {
cd cvs-1.12.13.1
make install
}
LICENSE="GNU GPL v1
GNU LGPL v2"
COPYRIGHT="1986-2005 Free Software Foundation, Inc."

View File

@@ -1,22 +0,0 @@
DESCRIPTION="CVS is a version control system"
HOMEPAGE="http://www.nongnu.org/cvs/"
SRC_URI="http://ftp.gnu.org/non-gnu/cvs/source/feature/1.12.13/cvs-1.12.13.tar.gz"
CHECKSUM_MD5="7a71a2e7a64973ecf255965956a1d338"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd cvs-1.12.13
libtoolize --force --copy --install
autoconf
./configure --prefix=/boot/common --enable-rootcommit EDITOR=nano
make
}
INSTALL {
cd cvs-1.12.13
make install
}
LICENSE="GNU GPL v1
GNU LGPL v2"
COPYRIGHT="1986-2005 Free Software Foundation, Inc."

View File

@@ -1,433 +0,0 @@
? build-aux/ltmain.sh
Index: configure
===================================================================
RCS file: /sources/cvs/ccvs/configure,v
retrieving revision 1.488
diff -u -p -r1.488 configure
--- configure 28 Jan 2008 05:32:56 -0000 1.488
+++ configure 4 May 2008 09:32:20 -0000
@@ -40558,7 +40558,7 @@ return connect ();
return 0;
}
_ACEOF
-for ac_lib in '' xnet socket inet; do
+for ac_lib in '' xnet socket inet network; do
if test -z "$ac_lib"; then
ac_res="none required"
else
Index: configure.in
===================================================================
RCS file: /sources/cvs/ccvs/configure.in,v
retrieving revision 1.385
diff -u -p -r1.385 configure.in
--- configure.in 28 Jan 2008 05:32:56 -0000 1.385
+++ configure.in 4 May 2008 09:32:26 -0000
@@ -527,7 +527,7 @@ CVS_FUNC_PRINTF_PTR
# Try to find connect and gethostbyname.
AC_CHECK_LIB(nsl, main)
-AC_SEARCH_LIBS(connect, xnet socket inet,
+AC_SEARCH_LIBS(connect, xnet socket inet network,
AC_DEFINE(HAVE_CONNECT, 1,
[Define if you have the connect function.]))
dnl no need to search nsl for gethostbyname here since we should have
Index: build-aux/config.guess
===================================================================
RCS file: /sources/cvs/ccvs/build-aux/config.guess,v
retrieving revision 1.2
diff -u -p -r1.2 config.guess
--- build-aux/config.guess 21 Aug 2007 18:42:53 -0000 1.2
+++ build-aux/config.guess 4 May 2008 09:32:31 -0000
@@ -1,10 +1,10 @@
#! /bin/sh
# Attempt to guess a canonical system name.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
-timestamp='2006-07-02'
+timestamp='2008-01-08'
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
@@ -56,8 +56,8 @@ version="\
GNU config.guess ($timestamp)
Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-Free Software Foundation, Inc.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -161,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
arm*) machine=arm-unknown ;;
sh3el) machine=shl-unknown ;;
sh3eb) machine=sh-unknown ;;
+ sh5el) machine=sh5le-unknown ;;
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
esac
# The Operating System including object format, if it has switched
@@ -329,7 +330,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
- i86pc:SunOS:5.*:*)
+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
exit ;;
sun4*:SunOS:6*:*)
@@ -531,7 +532,7 @@ EOF
echo rs6000-ibm-aix3.2
fi
exit ;;
- *:AIX:*:[45])
+ *:AIX:*:[456])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
IBM_ARCH=rs6000
@@ -780,7 +781,7 @@ EOF
i*:CYGWIN*:*)
echo ${UNAME_MACHINE}-pc-cygwin
exit ;;
- i*:MINGW*:*)
+ *:MINGW*:*)
echo ${UNAME_MACHINE}-pc-mingw32
exit ;;
i*:windows32*:*)
@@ -790,12 +791,18 @@ EOF
i*:PW*:*)
echo ${UNAME_MACHINE}-pc-pw32
exit ;;
- x86:Interix*:[3456]*)
- echo i586-pc-interix${UNAME_RELEASE}
- exit ;;
- EM64T:Interix*:[3456]*)
- echo x86_64-unknown-interix${UNAME_RELEASE}
- exit ;;
+ *:Interix*:[3456]*)
+ case ${UNAME_MACHINE} in
+ x86)
+ echo i586-pc-interix${UNAME_RELEASE}
+ exit ;;
+ EM64T | authenticamd)
+ echo x86_64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ IA64)
+ echo ia64-unknown-interix${UNAME_RELEASE}
+ exit ;;
+ esac ;;
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
echo i${UNAME_MACHINE}-pc-mks
exit ;;
@@ -829,7 +836,14 @@ EOF
echo ${UNAME_MACHINE}-pc-minix
exit ;;
arm*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ eval $set_cc_for_build
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_EABI__
+ then
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ else
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ fi
exit ;;
avr32*:Linux:*:*)
echo ${UNAME_MACHINE}-unknown-linux-gnu
@@ -950,6 +964,9 @@ EOF
x86_64:Linux:*:*)
echo x86_64-unknown-linux-gnu
exit ;;
+ xtensa*:Linux:*:*)
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
+ exit ;;
i*86:Linux:*:*)
# The BFD linker knows what the default object file format is, so
# first see if it will tell us. cd to the root directory to prevent
@@ -1199,6 +1216,12 @@ EOF
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
echo i586-pc-beos
exit ;;
+ BeMac:Haiku:*:*)
+ echo powerpc-apple-haiku
+ exit ;;
+ BePC:Haiku:*:*)
+ echo i586-pc-haiku
+ exit ;;
SX-4:SUPER-UX:*:*)
echo sx4-nec-superux${UNAME_RELEASE}
exit ;;
@@ -1208,6 +1231,15 @@ EOF
SX-6:SUPER-UX:*:*)
echo sx6-nec-superux${UNAME_RELEASE}
exit ;;
+ SX-7:SUPER-UX:*:*)
+ echo sx7-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8:SUPER-UX:*:*)
+ echo sx8-nec-superux${UNAME_RELEASE}
+ exit ;;
+ SX-8R:SUPER-UX:*:*)
+ echo sx8r-nec-superux${UNAME_RELEASE}
+ exit ;;
Power*:Rhapsody:*:*)
echo powerpc-apple-rhapsody${UNAME_RELEASE}
exit ;;
Index: build-aux/config.sub
===================================================================
RCS file: /sources/cvs/ccvs/build-aux/config.sub,v
retrieving revision 1.2
diff -u -p -r1.2 config.sub
--- build-aux/config.sub 21 Aug 2007 18:42:53 -0000 1.2
+++ build-aux/config.sub 4 May 2008 09:32:35 -0000
@@ -1,10 +1,10 @@
#! /bin/sh
# Configuration validation subroutine script.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
-# Inc.
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+# Free Software Foundation, Inc.
-timestamp='2006-09-20'
+timestamp='2008-01-16'
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
@@ -72,8 +72,8 @@ Report bugs and patches to <config-patch
version="\
GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-Free Software Foundation, Inc.
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
+2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -245,12 +245,12 @@ case $basic_machine in
| bfin \
| c4x | clipper \
| d10v | d30v | dlx | dsp16xx \
- | fr30 | frv \
+ | fido | fr30 | frv \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| i370 | i860 | i960 | ia64 \
| ip2k | iq2000 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore \
+ | maxq | mb | microblaze | mcore | mep \
| mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \
| mips64 | mips64el \
@@ -324,7 +324,7 @@ case $basic_machine in
| clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \
| elxsi-* \
- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| i*86-* | i860-* | i960-* | ia64-* \
@@ -369,10 +369,14 @@ case $basic_machine in
| v850-* | v850e-* | vax-* \
| we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
- | xstormy16-* | xtensa-* \
+ | xstormy16-* | xtensa*-* \
| ymp-* \
| z8k-*)
;;
+ # Recognize the basic CPU types without company name, with glob match.
+ xtensa*)
+ basic_machine=$basic_machine-unknown
+ ;;
# Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS.
386bsd)
@@ -443,6 +447,14 @@ case $basic_machine in
basic_machine=ns32k-sequent
os=-dynix
;;
+ blackfin)
+ basic_machine=bfin-unknown
+ os=-linux
+ ;;
+ blackfin-*)
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
c90)
basic_machine=c90-cray
os=-unicos
@@ -475,8 +487,8 @@ case $basic_machine in
basic_machine=craynv-cray
os=-unicosmp
;;
- cr16c)
- basic_machine=cr16c-unknown
+ cr16)
+ basic_machine=cr16-unknown
os=-elf
;;
crds | unos)
@@ -668,6 +680,14 @@ case $basic_machine in
basic_machine=m68k-isi
os=-sysv
;;
+ m68knommu)
+ basic_machine=m68k-unknown
+ os=-linux
+ ;;
+ m68knommu-*)
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
m88k-omron*)
basic_machine=m88k-omron
;;
@@ -683,6 +703,10 @@ case $basic_machine in
basic_machine=i386-pc
os=-mingw32
;;
+ mingw32ce)
+ basic_machine=arm-unknown
+ os=-mingw32ce
+ ;;
miniframe)
basic_machine=m68000-convergent
;;
@@ -809,6 +833,14 @@ case $basic_machine in
basic_machine=i860-intel
os=-osf
;;
+ parisc)
+ basic_machine=hppa-unknown
+ os=-linux
+ ;;
+ parisc-*)
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
+ os=-linux
+ ;;
pbd)
basic_machine=sparc-tti
;;
@@ -925,6 +957,9 @@ case $basic_machine in
basic_machine=sh-hitachi
os=-hms
;;
+ sh5el)
+ basic_machine=sh5le-unknown
+ ;;
sh64)
basic_machine=sh64-unknown
;;
@@ -1014,6 +1049,10 @@ case $basic_machine in
basic_machine=tic6x-unknown
os=-coff
;;
+ tile*)
+ basic_machine=tile-unknown
+ os=-linux-gnu
+ ;;
tx39)
basic_machine=mipstx39-unknown
;;
@@ -1219,7 +1258,7 @@ case $os in
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
- | -skyos* | -haiku* | -rdos* | -toppers*)
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
# Remember, each alternative MUST END IN *, to match a version number.
;;
-qnx*)
@@ -1414,6 +1453,9 @@ case $basic_machine in
m68*-cisco)
os=-aout
;;
+ mep-*)
+ os=-elf
+ ;;
mips*-cisco)
os=-elf
;;
Index: lib/stdbool_.h
===================================================================
RCS file: /sources/cvs/ccvs/lib/stdbool_.h,v
retrieving revision 1.5
diff -u -p -r1.5 stdbool_.h
--- lib/stdbool_.h 22 Aug 2007 12:48:45 -0000 1.5
+++ lib/stdbool_.h 4 May 2008 09:32:38 -0000
@@ -58,7 +58,7 @@
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
definitions below, but temporarily we have to #undef them. */
-#ifdef __BEOS__
+#if defined __BEOS__ && !defined __HAIKU__
# include <OS.h> /* defines bool but not _Bool */
# undef false
# undef true
@@ -73,7 +73,7 @@
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
enum; this ensures that '_Bool' promotes to 'int'. */
-#if defined __cplusplus || defined __BEOS__
+#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
/* A compiler known to have 'bool'. */
/* If the compiler already has both 'bool' and '_Bool', we can assume they
are the same types. */
Index: src/buffer.c
===================================================================
RCS file: /sources/cvs/ccvs/src/buffer.c,v
retrieving revision 1.73
diff -u -p -r1.73 buffer.c
--- src/buffer.c 4 May 2006 18:15:15 -0000 1.73
+++ src/buffer.c 4 May 2008 09:32:45 -0000
@@ -24,6 +24,7 @@
/* CVS headers. */
#include "cvs.h"
+#include <sys/select.h>
/* Local functions. */
@@ -2120,7 +2121,7 @@ fd_buffer_block (void *closure, bool blo
&& sb.st_uid == devnull.st_uid
&& sb.st_gid == devnull.st_gid
&& sb.st_size == devnull.st_size
- && sb.st_blocks == devnull.st_blocks
+// && sb.st_blocks == devnull.st_blocks
&& sb.st_blksize == devnull.st_blksize);
if (isdevnull)
errno = 0;
Index: windows-NT/stdbool.h
===================================================================
RCS file: /sources/cvs/ccvs/windows-NT/stdbool.h,v
retrieving revision 1.6
diff -u -p -r1.6 stdbool.h
--- windows-NT/stdbool.h 22 Aug 2007 13:48:49 -0000 1.6
+++ windows-NT/stdbool.h 4 May 2008 09:35:17 -0000
@@ -65,7 +65,7 @@
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
definitions below, but temporarily we have to #undef them. */
-#ifdef __BEOS__
+#if defined __BEOS__ && !defined __HAIKU__
# include <OS.h> /* defines bool but not _Bool */
# undef false
# undef true
@@ -80,7 +80,7 @@
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
enum; this ensures that '_Bool' promotes to 'int'. */
-#if defined __cplusplus || defined __BEOS__
+#if defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__)
/* A compiler known to have 'bool'. */
/* If the compiler already has both 'bool' and '_Bool', we can assume they
are the same types. */

View File

@@ -1,190 +0,0 @@
diff -ur cvs-1.12.13.1/configure cvs-1.12.13.1-haiku/configure
--- cvs-1.12.13.1/configure 2006-07-07 15:31:08.000000000 -0600
+++ cvs-1.12.13.1-haiku/configure 2009-11-24 15:37:33.000000000 -0700
@@ -45920,7 +45920,7 @@
return 0;
}
_ACEOF
-for ac_lib in '' xnet socket inet; do
+for ac_lib in '' xnet network socket inet; do
if test -z "$ac_lib"; then
ac_res="none required"
else
diff -ur cvs-1.12.13.1/configure.in cvs-1.12.13.1-haiku/configure.in
--- cvs-1.12.13.1/configure.in 2006-06-29 09:13:10.000000000 -0600
+++ cvs-1.12.13.1-haiku/configure.in 2009-11-24 15:37:33.000000000 -0700
@@ -541,7 +541,7 @@
# Try to find connect and gethostbyname.
AC_CHECK_LIB(nsl, main)
-AC_SEARCH_LIBS(connect, xnet socket inet,
+AC_SEARCH_LIBS(connect, xnet network socket inet,
AC_DEFINE(HAVE_CONNECT, 1,
[Define if you have the connect function.]))
dnl no need to search nsl for gethostbyname here since we should have
diff -ur cvs-1.12.13.1/src/cvs.h cvs-1.12.13.1-haiku/src/cvs.h
--- cvs-1.12.13.1/src/cvs.h 2006-04-25 14:01:47.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/cvs.h 2009-11-24 15:37:33.000000000 -0700
@@ -181,8 +181,13 @@
#define CVSRFLPAT "#cvs.rfl.*" /* wildcard expr to match read locks */
#define CVSEXT_LOG ",t"
#define CVSPREFIX ",,"
+#ifdef __HAIKU__
+#define CVSDOTIGNORE "cvsignore"
+#define CVSDOTWRAPPER "cvswrappers"
+#else
#define CVSDOTIGNORE ".cvsignore"
#define CVSDOTWRAPPER ".cvswrappers"
+#endif
/* Command attributes -- see function lookup_command_attribute(). */
#define CVS_CMD_IGNORE_ADMROOT 1
diff -ur cvs-1.12.13.1/src/cvsrc.c cvs-1.12.13.1-haiku/src/cvsrc.c
--- cvs-1.12.13.1/src/cvsrc.c 2006-03-31 14:54:57.000000000 -0700
+++ cvs-1.12.13.1-haiku/src/cvsrc.c 2009-11-24 15:37:33.000000000 -0700
@@ -20,7 +20,11 @@
/* this file is to be found in the user's home directory */
#ifndef CVSRC_FILENAME
-#define CVSRC_FILENAME ".cvsrc"
+# ifdef __HAIKU__
+# define CVSRC_FILENAME "cvsrc"
+# else
+# define CVSRC_FILENAME ".cvsrc"
+# endif
#endif
char cvsrc[] = CVSRC_FILENAME;
@@ -64,7 +68,7 @@
/* determine filename for ~/.cvsrc */
- homedir = get_homedir ();
+ homedir = get_rcdir ();
/* If we can't find a home directory, ignore ~/.cvsrc. This may
make tracking down problems a bit of a pain, but on the other
hand it might be obnoxious to complain when CVS will function
diff -ur cvs-1.12.13.1/src/filesubr.c cvs-1.12.13.1-haiku/src/filesubr.c
--- cvs-1.12.13.1/src/filesubr.c 2006-07-05 20:14:08.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/filesubr.c 2009-11-24 15:51:02.000000000 -0700
@@ -32,6 +32,11 @@
/* CVS */
#include "cvs.h"
+#ifdef __HAIKU__
+#include <FindDirectory.h>
+#include <StorageDefs.h>
+#endif
+
static int deep_remove_dir (const char *path);
@@ -859,6 +864,36 @@
return home;
}
+/* Compose a path to the settings directory for systems that don't store data
+ * in $HOME. Returns a pointer to storage managed by this function or its
+ * callees. This function will return the same thing every time it is called.
+ * Returns NULL if there is no rc directory.
+ */
+char *
+get_rcdir (void)
+{
+ static char *rcdir = NULL;
+
+ if (rcdir == NULL)
+ {
+#ifdef __HAIKU__
+ char path[B_PATH_NAME_LENGTH+B_FILE_NAME_LENGTH];
+ dev_t volume = dev_for_path("/boot");
+
+ if (find_directory(B_USER_SETTINGS_DIRECTORY, volume, true, path, sizeof(path)) != B_OK)
+ return 0;
+
+ rcdir = Xasprintf ("%s/cvs", &path);
+
+ mkdir_if_needed(rcdir);
+#else
+ rcdir = get_homedir();
+#endif
+ }
+
+ return rcdir;
+}
+
/* Compose a path to a file in the home directory. This is necessary because
* of different behavior on UNIX and VMS. See the notes in vms/filesubr.c.
*
diff -ur cvs-1.12.13.1/src/filesubr.h cvs-1.12.13.1-haiku/src/filesubr.h
--- cvs-1.12.13.1/src/filesubr.h 2006-07-05 20:14:08.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/filesubr.h 2009-11-24 15:37:33.000000000 -0700
@@ -33,6 +33,7 @@
bool iswritable (const char *file);
bool isaccessible (const char *file, const int mode);
char *get_homedir (void);
+char *get_rcdir (void);
char *strcat_filename_onto_homedir (const char *, const char *);
char *cvs_temp_name (void);
FILE *cvs_temp_file (char **filename);
diff -ur cvs-1.12.13.1/src/history.c cvs-1.12.13.1-haiku/src/history.c
--- cvs-1.12.13.1/src/history.c 2006-06-09 15:28:17.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/history.c 2009-11-24 15:37:33.000000000 -0700
@@ -807,7 +807,7 @@
{
char *pwdir;
- pwdir = get_homedir ();
+ pwdir = get_rcdir ();
PrCurDir = CurDir;
if (pwdir != NULL)
{
diff -ur cvs-1.12.13.1/src/ignore.c cvs-1.12.13.1-haiku/src/ignore.c
--- cvs-1.12.13.1/src/ignore.c 2006-04-24 12:50:26.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/ignore.c 2009-11-24 15:37:33.000000000 -0700
@@ -98,7 +98,7 @@
}
/* Then add entries found in home dir, (if user has one) and file exists */
- home_dir = get_homedir ();
+ home_dir = get_rcdir ();
/* If we can't find a home directory, ignore ~/.cvsignore. This may
make tracking down problems a bit of a pain, but on the other
hand it might be obnoxious to complain when CVS will function
diff -ur cvs-1.12.13.1/src/login.c cvs-1.12.13.1-haiku/src/login.c
--- cvs-1.12.13.1/src/login.c 2006-06-28 08:25:26.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/login.c 2009-11-24 15:37:33.000000000 -0700
@@ -28,7 +28,11 @@
#ifndef CVS_PASSWORD_FILE
-#define CVS_PASSWORD_FILE ".cvspass"
+# ifdef __HAIKU__
+# define CVS_PASSWORD_FILE "cvspass"
+# else
+# define CVS_PASSWORD_FILE ".cvspass"
+# endif
#endif
/* If non-NULL, get_cvs_password() will just return this. */
@@ -49,7 +53,7 @@
/* Construct absolute pathname to user's password file. */
/* todo: does this work under OS/2 ? */
- homedir = get_homedir ();
+ homedir = get_rcdir ();
if (! homedir)
{
/* FIXME? This message confuses a lot of users, at least
diff -ur cvs-1.12.13.1/src/wrapper.c cvs-1.12.13.1-haiku/src/wrapper.c
--- cvs-1.12.13.1/src/wrapper.c 2006-04-24 12:50:27.000000000 -0600
+++ cvs-1.12.13.1-haiku/src/wrapper.c 2009-11-24 15:37:33.000000000 -0700
@@ -125,7 +125,7 @@
/* Then add entries found in home dir, (if user has one) and file
exists. */
- homedir = get_homedir ();
+ homedir = get_rcdir ();
/* If we can't find a home directory, ignore ~/.cvswrappers. This may
make tracking down problems a bit of a pain, but on the other
hand it might be obnoxious to complain when CVS will function

View File

@@ -1,75 +0,0 @@
diff -up cvs-1.12.13/configure.in.orig cvs-1.12.13/configure.in
--- cvs-1.12.13/configure.in.orig 2010-04-28 23:59:18.202637312 -0600
+++ cvs-1.12.13/configure.in 2010-04-29 00:01:51.938999808 -0600
@@ -515,12 +515,12 @@ CVS_FUNC_PRINTF_PTR
# Try to find connect and gethostbyname.
AC_CHECK_LIB(nsl, main)
-AC_SEARCH_LIBS(connect, xnet socket inet,
+AC_SEARCH_LIBS(connect, xnet socket inet network,
AC_DEFINE(HAVE_CONNECT, 1,
[Define if you have the connect function.]))
dnl no need to search nsl for gethostbyname here since we should have
dnl just added libnsl above if we found it.
-AC_SEARCH_LIBS(gethostbyname, netinet)
+AC_SEARCH_LIBS(gethostbyname, netinet network)
AC_SUBST(cvs_client_objects)
diff -up cvs-1.12.13/lib/getpass.c.orig cvs-1.12.13/lib/getpass.c
--- cvs-1.12.13/lib/getpass.c.orig 2005-09-19 15:12:21.001835008 -0600
+++ cvs-1.12.13/lib/getpass.c 2010-04-28 23:55:13.523239424 -0600
@@ -104,7 +104,7 @@ getpass (const char *prompt)
else
{
/* We do the locking ourselves. */
- __fsetlocking (tty, FSETLOCKING_BYCALLER);
+// __fsetlocking (tty, FSETLOCKING_BYCALLER);
out = in = tty;
}
diff -up cvs-1.12.13/lib/stdbool_.h.orig cvs-1.12.13/lib/stdbool_.h
--- cvs-1.12.13/lib/stdbool_.h.orig 2005-05-23 11:44:32.015204352 -0600
+++ cvs-1.12.13/lib/stdbool_.h 2010-04-28 23:55:13.506724352 -0600
@@ -55,7 +55,7 @@
/* BeOS <sys/socket.h> already #defines false 0, true 1. We use the same
definitions below, but temporarily we have to #undef them. */
-#ifdef __BEOS__
+#if defined(__BEOS__) && !defined(__HAIKU__)
# include <OS.h> /* defines bool but not _Bool */
# undef false
# undef true
@@ -70,7 +70,7 @@
(see ISO C 99 6.7.2.2.(4)); however, '_Bool' must promote to 'int'
(see ISO C 99 6.3.1.1.(2)). So we add a negative value to the
enum; this ensures that '_Bool' promotes to 'int'. */
-#if !(defined __cplusplus || defined __BEOS__)
+#if !(defined __cplusplus || (defined __BEOS__ && !defined __HAIKU__))
# if !@HAVE__BOOL@
# if defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1)
/* Avoid stupid "warning: _Bool is a keyword in ISO C99". */
diff -up cvs-1.12.13/m4/getaddrinfo.m4.orig cvs-1.12.13/m4/getaddrinfo.m4
--- cvs-1.12.13/m4/getaddrinfo.m4.orig 2010-04-29 00:00:46.542638080 -0600
+++ cvs-1.12.13/m4/getaddrinfo.m4 2010-04-29 00:00:53.830996480 -0600
@@ -6,7 +6,7 @@ dnl with or without modifications, as lo
AC_DEFUN([gl_GETADDRINFO],
[
- AC_SEARCH_LIBS(getaddrinfo, nsl socket)
+ AC_SEARCH_LIBS(getaddrinfo, nsl socket network)
AC_REPLACE_FUNCS(getaddrinfo gai_strerror)
gl_PREREQ_GETADDRINFO
])
diff -up cvs-1.12.13/src/buffer.c.orig cvs-1.12.13/src/buffer.c
--- cvs-1.12.13/src/buffer.c.orig 2005-10-02 09:17:20.017563648 -0600
+++ cvs-1.12.13/src/buffer.c 2010-04-28 23:55:13.536084480 -0600
@@ -2019,7 +2019,7 @@ fd_buffer_block (void *closure, bool blo
&& sb.st_uid == devnull.st_uid
&& sb.st_gid == devnull.st_gid
&& sb.st_size == devnull.st_size
- && sb.st_blocks == devnull.st_blocks
+// && sb.st_blocks == devnull.st_blocks
&& sb.st_blksize == devnull.st_blksize);
if (isdevnull)
errno = 0;

View File

@@ -1,54 +0,0 @@
--- git-1.5.5/Makefile 2008-04-08 07:10:01.000000000 +0000
+++ git-1.5.5.patched/Makefile 2008-04-19 00:20:29.000000000 +0000
@@ -989,7 +989,7 @@
'-DGIT_INFO_PATH="$(infodir_SQ)"' $<
$(BUILT_INS): git$X
- $(QUIET_BUILT_IN)$(RM) $@ && ln git$X $@
+ $(QUIET_BUILT_IN)$(RM) $@ && ln -s git$X $@
common-cmds.h: ./generate-cmdlist.sh command-list.txt
@@ -1230,7 +1230,7 @@
cp '$(DESTDIR_SQ)$(bindir_SQ)/git$X' \
'$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X'; \
fi
- $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
+ $(foreach p,$(BUILT_INS), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' && ln -s '$(DESTDIR_SQ)$(gitexecdir_SQ)/git$X' '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p' ;)
ifneq (,$X)
$(foreach p,$(patsubst %$X,%,$(filter %$X,$(ALL_PROGRAMS) $(BUILT_INS) git$X)), $(RM) '$(DESTDIR_SQ)$(gitexecdir_SQ)/$p';)
endif
--- git-1.5.5/git-compat-util.h 2008-04-08 07:10:01.000000000 +0000
+++ git-1.5.5.patched/git-compat-util.h 2008-04-18 22:15:48.000000000 +0000
@@ -453,4 +453,8 @@
# define FORCE_DIR_SET_GID 0
#endif
+#ifndef INET_ADDRSTRLEN
+#define INET_ADDRSTRLEN 16
+#endif
+
#endif
--- git-1.5.5/builtin-count-objects.c 2008-04-08 07:10:01.000000000 +0000
+++ git-1.5.5.patched/builtin-count-objects.c 2008-04-19 00:32:05.000000000 +0000
@@ -43,7 +43,8 @@
if (lstat(path, &st) || !S_ISREG(st.st_mode))
bad = 1;
else
- (*loose_size) += xsize_t(st.st_blocks);
+// (*loose_size) += xsize_t(st.st_blocks);
+ (*loose_size) += ceil(st.st_size / 512.0);
}
if (bad) {
if (verbose) {
--- git-1.5.5/templates/Makefile 2008-04-08 07:10:01.000000000 +0000
+++ git-1.5.5.patched/templates/Makefile 2008-04-19 00:44:46.000000000 +0000
@@ -23,7 +23,7 @@
bpsrc = $(filter-out %~,$(wildcard *--*))
boilerplates.made : $(bpsrc)
- $(QUIET)ls *--* 2>/dev/null | \
+ $(QUIET)ls -1 *--* 2>/dev/null | \
while read boilerplate; \
do \
case "$$boilerplate" in *~) continue ;; esac && \

View File

@@ -1,39 +0,0 @@
DESCRIPTION="git a fast version control system"
HOMEPAGE="http://git-scm.com/"
SRC_URI="http://kernel.org/pub/software/scm/git/git-1.6.5.3.tar.bz2"
CHECKSUM_MD5="a1dbc3da46cbf33c4367db689853c142"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd git-1.6.5.3
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=/boot/common --enable-pthreads=""
make prefix=/boot/common NO_R_TO_GCC_LINKER=YesPlease \
NO_C99_FORMAT=YesPlease \
NO_ST_BLOCKS_IN_STRUCT_STAT=YesPlease \
NO_MEMMEM=YesPlease NO_MKSTEMPS=YesPlease \
NO_MKDTEMP=YesPlease NO_IPV6=YesPlease \
NO_TCLTK=YesPlease CURLDIR=/boot/common \
PERL_PATH=/boot/common/bin/perl \
CFLAGS="-g -O2 -I/boot/common/include" \
LIBS="" \
LDFLAGS="-L/boot/common/lib -lnetwork -lbsd -liconv" \
strip
}
INSTALL {
cd git-1.6.5.3
make install prefix=/boot/common NO_R_TO_GCC_LINKER=YesPlease \
NO_C99_FORMAT=YesPlease NO_ST_BLOCKS_IN_STRUCT_STAT=YesPlease \
NO_MEMMEM=YesPlease NO_MKSTEMPS=YesPlease \
NO_MKDTEMP=YesPlease NO_IPV6=YesPlease NO_TCLTK=YesPlease \
CURLDIR=/boot/common PERL_PATH=/boot/common/bin/perl \
CFLAGS="-g -O2 -I/boot/common/include" \
LIBS="" \
LDFLAGS="-L/boot/common/lib -lnetwork -lbsd -liconv" \
strip
}
LICENSE="GNU GPL v2"

View File

@@ -1,49 +0,0 @@
DESCRIPTION="git a fast version control system"
HOMEPAGE="http://git-scm.com/"
SRC_URI="http://kernel.org/pub/software/scm/git/git-1.7.0.1.tar.gz"
CHECKSUM_MD5="05485caf5c503ce378a87759bc3a0509"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd git-1.7.0.1
# libtoolize --force --copy --install
# aclocal
# autoconf
./configure --prefix=/boot/common --enable-pthreads=""
make prefix=/boot/common \
NO_R_TO_GCC_LINKER=YesPlease \
NO_C99_FORMAT=YesPlease \
NO_ST_BLOCKS_IN_STRUCT_STAT=YesPlease \
NO_MEMMEM=YesPlease \
NO_MKSTEMPS=YesPlease \
NO_MKDTEMP=YesPlease \
NO_IPV6=YesPlease \
NO_TCLTK=YesPlease \
CURLDIR=/boot/common \
PERL_PATH=/boot/common/bin/perl \
CFLAGS="-g -O2 -I/boot/common/include" \
LIBS="" \
LDFLAGS="-L/boot/common/lib -lnetwork -lbsd -liconv" \
strip
}
INSTALL {
cd git-1.7.0.1
make install prefix=/boot/common \
NO_R_TO_GCC_LINKER=YesPlease \
NO_C99_FORMAT=YesPlease \
NO_ST_BLOCKS_IN_STRUCT_STAT=YesPlease \
NO_MEMMEM=YesPlease \
NO_MKSTEMPS=YesPlease \
NO_MKDTEMP=YesPlease \
NO_IPV6=YesPlease \
NO_TCLTK=YesPlease \
CURLDIR=/boot/common \
PERL_PATH=/boot/common/bin/perl \
CFLAGS="-g -O2 -I/boot/common/include" \
LIBS="" \
LDFLAGS="-L/boot/common/lib -lnetwork -lbsd -liconv" \
strip
}
LICENSE="GNU GPL v2"

View File

@@ -1,21 +0,0 @@
DESCRIPTION="git a fast version control system"
HOMEPAGE="http://git-scm.com/"
SRC_URI="http://kernel.org/pub/software/scm/git/git-1.7.0.4.tar.bz2"
CHECKSUM_MD5="1cc8b2aea57e5e999ccac18ae355f760"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd git-1.7.0.4
autoconf
CFLAGS="-I/boot/common/include" LDFLAGS="-L/boot/common/lib -L/boot/system/lib -lbsd -lnetwork" \
./configure --prefix=/boot/common --with-editor=nano --enable-pthreads="-lroot" \
--with-perl=/boot/common/bin/perl --with-python=/boot/common/bin/python --without-tcltk
make strip
}
INSTALL {
cd git-1.7.0.4
make install
}
LICENSE="GNU GPL v2"

View File

@@ -1,21 +0,0 @@
DESCRIPTION="git a fast version control system"
HOMEPAGE="http://git-scm.com/"
SRC_URI="http://kernel.org/pub/software/scm/git/git-1.7.0.5.tar.bz2"
CHECKSUM_MD5="77d50f41ef282752dc69d9a47765f5c7"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd git-1.7.0.5
autoconf
CFLAGS="-I/boot/common/include" LDFLAGS="-L/boot/common/lib -L/boot/system/lib -lbsd -lnetwork" \
./configure --prefix=/boot/common --with-editor=nano --enable-pthreads="-lroot" \
--with-perl=/boot/common/bin/perl --with-python=/boot/common/bin/python --without-tcltk
make strip
}
INSTALL {
cd git-1.7.0.5
make install
}
LICENSE="GNU GPL v2"

View File

@@ -1,22 +0,0 @@
DESCRIPTION="git a fast version control system"
HOMEPAGE="http://git-scm.com/"
SRC_URI="http://kernel.org/pub/software/scm/git/git-1.7.1.tar.bz2"
CHECKSUM_MD5="3da231dbe82ad103373cb530ae7475d5"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="net-misc/curl >= 7.20.0
dev-lang/perl >= 5.10.1"
BUILD {
cd git-1.7.1
autoconf
CFLAGS="-I/boot/common/include" LDFLAGS="-L/boot/common/lib -L/boot/system/lib -lbsd -lnetwork" \
./configure --prefix=/boot/common --with-editor=nano --enable-pthreads="-lroot" \
--with-perl=/boot/common/bin/perl --with-python=/boot/common/bin/python --without-tcltk
make strip
}
INSTALL {
cd git-1.7.1
make install
}
LICENSE="GNU GPL v2"

View File

@@ -1,25 +0,0 @@
diff -up git-1.7.0.4/configure.ac.orig git-1.7.0.4/configure.ac
--- git-1.7.0.4/configure.ac.orig 2010-04-03 18:57:28.303824896 -0600
+++ git-1.7.0.4/configure.ac 2010-04-03 18:59:05.954990592 -0600
@@ -527,17 +527,13 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -
# Define NEEDS_RESOLV if linking with -lnsl and/or -lsocket is not enough.
# Notably on Solaris hstrerror resides in libresolv and on Solaris 7
# inet_ntop and inet_pton additionally reside there.
-AC_CHECK_LIB([c], [hstrerror],
-[NEEDS_RESOLV=],
-[NEEDS_RESOLV=YesPlease])
+AC_SEARCH_LIBS([hstrerror], [resolv],
+[AC_DEFINE([NEEDS_RESOLV], [YesPlease])])
AC_SUBST(NEEDS_RESOLV)
-test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
-AC_CHECK_LIB([c], [basename],
-[NEEDS_LIBGEN=],
-[NEEDS_LIBGEN=YesPlease])
+AC_SEARCH_LIBS([basename], [gen],
+[AC_DEFINE([NEEDS_LIBGEN], [YesPlease])])
AC_SUBST(NEEDS_LIBGEN)
-test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
## Checks for header files.
AC_MSG_NOTICE([CHECKS for header files])

View File

@@ -1,25 +0,0 @@
diff -up git-1.7.0.5/configure.ac.orig git-1.7.0.4/configure.ac
--- git-1.7.0.5/configure.ac.orig 2010-04-03 18:57:28.303824896 -0600
+++ git-1.7.0.5/configure.ac 2010-04-03 18:59:05.954990592 -0600
@@ -527,17 +527,13 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -
# Define NEEDS_RESOLV if linking with -lnsl and/or -lsocket is not enough.
# Notably on Solaris hstrerror resides in libresolv and on Solaris 7
# inet_ntop and inet_pton additionally reside there.
-AC_CHECK_LIB([c], [hstrerror],
-[NEEDS_RESOLV=],
-[NEEDS_RESOLV=YesPlease])
+AC_SEARCH_LIBS([hstrerror], [resolv],
+[AC_DEFINE([NEEDS_RESOLV], [YesPlease])])
AC_SUBST(NEEDS_RESOLV)
-test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
-AC_CHECK_LIB([c], [basename],
-[NEEDS_LIBGEN=],
-[NEEDS_LIBGEN=YesPlease])
+AC_SEARCH_LIBS([basename], [gen],
+[AC_DEFINE([NEEDS_LIBGEN], [YesPlease])])
AC_SUBST(NEEDS_LIBGEN)
-test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
## Checks for header files.
AC_MSG_NOTICE([CHECKS for header files])

View File

@@ -1,25 +0,0 @@
diff -up git-1.7.1/configure.ac.orig git-1.7.1/configure.ac
--- git-1.7.1/configure.ac.orig 2010-04-23 20:38:35.035127296 -0600
+++ git-1.7.1/configure.ac 2010-05-13 18:03:30.180355072 -0600
@@ -547,17 +547,13 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -
# Define NEEDS_RESOLV if linking with -lnsl and/or -lsocket is not enough.
# Notably on Solaris hstrerror resides in libresolv and on Solaris 7
# inet_ntop and inet_pton additionally reside there.
-AC_CHECK_LIB([c], [hstrerror],
-[NEEDS_RESOLV=],
-[NEEDS_RESOLV=YesPlease])
+AC_SEARCH_LIBS([hstrerror], [resolv],
+[AC_DEFINE([NEEDS_RESOLV], [YesPlease])])
AC_SUBST(NEEDS_RESOLV)
-test -n "$NEEDS_RESOLV" && LIBS="$LIBS -lresolv"
-AC_CHECK_LIB([c], [basename],
-[NEEDS_LIBGEN=],
-[NEEDS_LIBGEN=YesPlease])
+AC_SEARCH_LIBS([basename], [gen],
+[AC_DEFINE([NEEDS_LIBGEN], [YesPlease])])
AC_SUBST(NEEDS_LIBGEN)
-test -n "$NEEDS_LIBGEN" && LIBS="$LIBS -lgen"
## Checks for header files.
AC_MSG_NOTICE([CHECKS for header files])

View File

@@ -1,24 +0,0 @@
diff -urN mercurial-1.0.2/mercurial/bdiff.c mercurial-1.0.2-haiku/mercurial/bdiff.c
--- mercurial-1.0.2/mercurial/bdiff.c 2008-08-13 22:11:47.000000000 +0000
+++ mercurial-1.0.2-haiku/mercurial/bdiff.c 2008-09-09 15:43:50.000000000 +0000
@@ -34,7 +34,7 @@
}
#else
#include <sys/types.h>
-#ifdef __BEOS__
+#if defined __BEOS__ && !defined __HAIKU__
#include <ByteOrder.h>
#else
#include <arpa/inet.h>
diff -urN mercurial-1.0.2/mercurial/mpatch.c mercurial-1.0.2-haiku/mercurial/mpatch.c
--- mercurial-1.0.2/mercurial/mpatch.c 2008-08-13 22:11:47.000000000 +0000
+++ mercurial-1.0.2-haiku/mercurial/mpatch.c 2008-09-09 15:44:29.000000000 +0000
@@ -52,7 +52,7 @@
#else
/* not windows */
# include <sys/types.h>
-# ifdef __BEOS__
+# if defined __BEOS__ && !defined __HAIKU__
# include <ByteOrder.h>
# else
# include <arpa/inet.h>

View File

@@ -1,18 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.4.2.tar.gz"
CHECKSUM_MD5="cf23b0887f0437c8601d5b89ae4663a6"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd mercurial-1.4.2
python setup.py build
}
INSTALL {
cd mercurial-1.4.2
python setup.py install --prefix=/boot/common
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,18 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.4.tar.gz"
CHECKSUM_MD5="951ebd4a8153eaa3c56fc0ce2575ab70"
REVISION="1"
STATUS_HAIKU="broken"
DEPEND=""
BUILD {
cd mercurial-1.4
python setup.py install --prefix="/boot/common" --force
}
INSTALL {
cd mercurial-1.4
make install PREFIX=/boot/common
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz"
CHECKSUM_MD5="22eac5602d777f9601e23700e641503f"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd mercurial-1.5.1
python setup.py build --force
}
INSTALL {
cd mercurial-1.5.1
if [ -n ${DESTDIR} ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.5.2.tar.gz"
CHECKSUM_MD5="deafaaf017fc3c8a9deef39e566aec80"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd mercurial-1.5.2
python setup.py build --force
}
INSTALL {
cd mercurial-1.5.2
if [ -n ${DESTDIR} ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.5.3.tar.gz"
CHECKSUM_MD5="0969b8109f1b5a9c4debf985cca938f9"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-lang/python >= 2.3"
BUILD {
cd mercurial-1.5.3
python setup.py build --force
}
INSTALL {
cd mercurial-1.5.3
if [ -n ${DESTDIR} ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.5.tar.gz"
CHECKSUM_MD5="6e31357ada35fe20557f08a4e89f9c42"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd mercurial-1.5
python setup.py build --force
}
INSTALL {
cd mercurial-1.5
if [ -n ${DESTDIR} ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,22 +0,0 @@
DESCRIPTION="Mercurial is a free, distributed source control management tool"
HOMEPAGE="http://mercurial.selenic.com/"
SRC_URI="http://mercurial.selenic.com/release/mercurial-1.6.tar.gz"
CHECKSUM_MD5="e97772cb424d29d9382c41daafa6f92d"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="dev-lang/python >= 2.3"
BUILD {
cd mercurial-1.6
python setup.py build --force
}
INSTALL {
cd mercurial-1.6
if [ -n "${DESTDIR}" ];then
python setup.py install --root="${DESTDIR}" --prefix="/boot/common" --force
else
python setup.py install --prefix="/boot/common" --force
fi
}
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2010 Matt Mackall et al. "

View File

@@ -1,12 +0,0 @@
diff -up mercurial-1.5.1/mercurial/ui.py.orig mercurial-1.5.1/mercurial/ui.py
--- mercurial-1.5.1/mercurial/ui.py.orig 2010-04-30 23:51:42.741605376 -0600
+++ mercurial-1.5.1/mercurial/ui.py 2010-04-30 23:52:08.309854208 -0600
@@ -384,7 +384,7 @@ class ui(object):
return (os.environ.get("HGEDITOR") or
self.config("ui", "editor") or
os.environ.get("VISUAL") or
- os.environ.get("EDITOR", "vi"))
+ os.environ.get("EDITOR", "nano"))
def progress(self, topic, pos, item="", unit="", total=None):
'''show a progress message

View File

@@ -1,12 +0,0 @@
diff -up mercurial-1.5.2/mercurial/ui.py.orig mercurial-1.5.2/mercurial/ui.py
--- mercurial-1.5.2/mercurial/ui.py.orig 2010-05-01 15:02:48.041156608 -0600
+++ mercurial-1.5.2/mercurial/ui.py 2010-05-01 17:04:56.068943872 -0600
@@ -384,7 +384,7 @@ class ui(object):
return (os.environ.get("HGEDITOR") or
self.config("ui", "editor") or
os.environ.get("VISUAL") or
- os.environ.get("EDITOR", "vi"))
+ os.environ.get("EDITOR", "nano"))
def progress(self, topic, pos, item="", unit="", total=None):
'''show a progress message

View File

@@ -1,12 +0,0 @@
diff -up mercurial-1.5.3/mercurial/ui.py.orig mercurial-1.5.3/mercurial/ui.py
--- mercurial-1.5.3/mercurial/ui.py.orig 2010-05-13 10:30:46.037224448 -0600
+++ mercurial-1.5.3/mercurial/ui.py 2010-05-13 17:58:50.218890240 -0600
@@ -384,7 +384,7 @@ class ui(object):
return (os.environ.get("HGEDITOR") or
self.config("ui", "editor") or
os.environ.get("VISUAL") or
- os.environ.get("EDITOR", "vi"))
+ os.environ.get("EDITOR", "nano"))
def progress(self, topic, pos, item="", unit="", total=None):
'''show a progress message

View File

@@ -1,12 +0,0 @@
diff -up mercurial-1.6/mercurial/ui.py.orig mercurial-1.6/mercurial/ui.py
--- mercurial-1.6/mercurial/ui.py.orig 2010-07-01 11:06:27.030670848 -0600
+++ mercurial-1.6/mercurial/ui.py 2010-07-01 11:41:21.504365056 -0600
@@ -557,7 +557,7 @@ class ui(object):
return (os.environ.get("HGEDITOR") or
self.config("ui", "editor") or
os.environ.get("VISUAL") or
- os.environ.get("EDITOR", "vi"))
+ os.environ.get("EDITOR", "nano"))
def progress(self, topic, pos, item="", unit="", total=None):
'''show a progress message