blob: 77ed8d055ba31fdb0cfd7fc7324b8a4e6c1b1481 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Created by: John Marino <marino@FreeBSD.org>
# $FreeBSD$
PORTNAME= ada-util
PORTVERSION= 1.8.0
PORTREVISION= 2
CATEGORIES= devel
MAINTAINER= marino@FreeBSD.org
COMMENT= Utility library for Ada 2005 applications
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
BUILD_DEPENDS= gprbuild:devel/gprbuild \
${LOCALBASE}/lib/gnat/ahven.gpr:devel/ahven
LIB_DEPENDS= libcurl.so:ftp/curl
USES= ada gmake
USE_GITHUB= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-ahven
CONFIGURE_ENV= ac_cv_lib_dl_dlopen=no
LDFLAGS= -L${LOCALBASE}/lib
GH_ACCOUNT= stcarrez
GH_TAGNAME= b6612400
post-patch:
@${REINPLACE_CMD} -e 's,freebsd\*,dragonfly*|freebsd*,' \
-e "s/^NR_CPUS=.*/NR_CPUS=${MAKE_JOBS_NUMBER}/" \
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|@prefix@|$${DESTDIR}@prefix@|' \
-e '/GPRINSTALL/ \
s|--prefix|--project-subdir=lib/gnat --prefix|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/Content_Type/d' \
${WRKSRC}/src/http/util-http-rest.adb
# Loggers are hardcoded for several packages at the INFO level
# which is quite useless for things like spawning commands.
# Set the loggers to filter out everything up less than ERROR
@${REINPLACE_CMD} -e '/Loggers.Create/s|);|, Util.Log.ERROR_LEVEL);|'\
${WRKSRC}/src/http/aws/util-http-clients-web.adb \
${WRKSRC}/src/http/curl/util-http-clients-curl.adb \
${WRKSRC}/src/http/util-http-clients.adb \
${WRKSRC}/src/http/util-http-parts.adb \
${WRKSRC}/src/util-beans-factory.adb \
${WRKSRC}/src/util-processes.adb \
${WRKSRC}/src/util-properties-bundles.adb \
${WRKSRC}/src/xml/util-serialize-io-xml.adb
post-install:
${RM} -r ${STAGEDIR}${PREFIX}/lib/gnat/manifests
# Scoop up all the source files gprinstall missed. (!)
${INSTALL_DATA} ${WRKSRC}/src/*.ad[bs] ${WRKSRC}/src/http/*.ad[bs] \
${WRKSRC}/src/os-linux/*.ad[bs] \
${STAGEDIR}${PREFIX}/include/util.static
.include <bsd.port.mk>
|