View | Details | Raw Unified | Return to bug 172503 | Differences between
and this patch

Collapse All | Expand All

(-)devel/xxl/Makefile (-14 / +24 lines)
Lines 1-35 Link Here
1
# Ports collection makefile for:        xxl
1
# Created by: Robert Schlotterbeck <robert@rs.tarrant.tx.us>
2
# Date created:                         28 Aug 2003
3
# Whom:                                 Robert Schlotterbeck <robert@rs.tarrant.tx.us>
4
#
5
# $FreeBSD: ports/devel/xxl/Makefile,v 1.14 2011/10/24 03:33:01 stas Exp $
2
# $FreeBSD: ports/devel/xxl/Makefile,v 1.14 2011/10/24 03:33:01 stas Exp $
6
#
7
3
8
PORTNAME=	xxl
4
PORTNAME=	xxl
9
PORTVERSION=	1.0.1
5
PORTVERSION=	1.0.1
10
PORTREVISION=	1
6
PORTREVISION=	1
11
CATEGORIES=	devel
7
CATEGORIES=	devel
12
MASTER_SITES=	http://www.zork.org/software/
8
MASTER_SITES=	http://launchpadlibrarian.net/39195019/ \
9
		http://www.zork.org/software/
13
10
14
MAINTAINER=	ports@FreeBSD.org
11
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	C/C++ library for exception handling and asset management
12
COMMENT=	C/C++ library for exception handling and asset management
16
13
14
LICENSE=	BSD
15
LICENSE_FILE=	${WRKSRC}/LICENSE
16
17
OPTIONS_DEFINE=	THREADS DOCS
18
OPTIONS_DEFAULT=THREADS
19
17
USE_AUTOTOOLS=	libtool
20
USE_AUTOTOOLS=	libtool
18
GNU_CONFIGURE=	yes
19
USE_LDCONFIG=	yes
21
USE_LDCONFIG=	yes
22
MAKE_JOBS_SAFE=	yes
20
23
21
.if defined(WITHOUT_THREADS)
24
PORTDOCS=	xxl.html xxl.pdf
22
CONFIGURE_ARGS=	--without-threads
23
.endif
24
25
25
.if !defined(NOPORTDOCS)
26
.include <bsd.port.options.mk>
26
PORTDOCS=	xxl.pdf xxl.html
27
28
.if ${PORT_OPTIONS:MTHREADS}
29
COFIGURE_ENV+=	PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
30
		PTHREAD_LIBS="${PTHERAD_LIBS}"
31
.else
32
CONFIGURE_ARGS+=--without-threads
27
.endif
33
.endif
28
34
29
post-install:
35
post-install:
30
.if !defined(NOPORTDOCS)
36
.if ${PORT_OPTIONS:MDOCS}
31
	@${MKDIR} ${DOCSDIR}
37
	@${MKDIR} ${DOCSDIR}
32
	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
38
	(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
33
.endif
39
.endif
34
40
41
regression-test test: build
42
	@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
43
		${MAKEFILE} ${MAKE_ARGS} check)
44
35
.include <bsd.port.mk>
45
.include <bsd.port.mk>
(-)devel/xxl/files/patch-ltmain.sh (-15 lines)
Lines 1-15 Link Here
1
--- ltmain.sh.orig	Fri Aug 29 13:31:36 2003
2
+++ ltmain.sh	Fri Aug 29 13:31:59 2003
3
@@ -5425,10 +5425,12 @@
4
 	fi
5
 
6
 	# Install the pseudo-library for information purposes.
7
+	if /usr/bin/false ; then
8
 	name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
9
 	instname="$dir/$name"i
10
 	$show "$install_prog $instname $destdir/$name"
11
 	$run eval "$install_prog $instname $destdir/$name" || exit $?
12
+	fi
13
 
14
 	# Maybe install the static library, too.
15
 	test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
(-)devel/xxl/files/patch-xxl.c (+11 lines)
Line 0 Link Here
1
--- xxl.c.orig	2004-12-22 03:42:52.000000000 -0600
2
+++ xxl.c	2008-01-17 13:25:18.000000000 -0600
3
@@ -380,6 +380,8 @@
4
             if (!tsd->contexts)
5
                 die("XXL: Exception thrown with no handler to catch it!\n");
6
             tsd->contexts->exception = *exception;
7
+			how=XXL_SETJMP_TRY;
8
+			tsd->contexts->state |= XXL_STATE_THROWN;
9
             xxl_leave_handler(how);
10
             return;
11
     }
(-)devel/xxl/pkg-descr (-5 / +5 lines)
Lines 1-11 Link Here
1
XXL is a library for C and C++ that provides exception handling and asset
1
XXL is a library for C and C++ that provides exception handling and asset
2
management. Asset management is integrated with the exception handling
2
management. Asset management is integrated with the exception handling
3
mechanism such that assets may be automatically cleaned up if an exception
3
mechanism such that assets may be automatically cleaned up if an exception
4
is thrown, which allows for much simplified program structure with respect to
4
is thrown, which allows for much simplified program structure with respect
5
error handling.
5
to error handling.
6
6
7
By allowing XXL to track assets and using its exception handling features, the
7
By allowing XXL to track assets and using its exception handling features,
8
programmer no longer has to check error conditions on every function call and
8
the programmer no longer has to check error conditions on every function
9
cleanup the assets on failure because XXL does the work. 
9
call and cleanup the assets on failure because XXL does the work.
10
10
11
WWW: http://www.zork.org/xxl/
11
WWW: http://www.zork.org/xxl/

Return to bug 172503