View | Details | Raw Unified | Return to bug 279805
Collapse All | Expand All

(-)b/misc/ini_file_manager/Makefile (-24 / +6 lines)
Lines 1-8 Link Here
1
PORTNAME=	ini_file_manager
1
PORTNAME=	ini_file_manager
2
PORTVERSION=	03
2
PORTVERSION=	11
3
PORTREVISION=	4
4
CATEGORIES=	misc
3
CATEGORIES=	misc
5
MASTER_SITES=	http://sourceforge.net/projects/${SFPATH}/
4
MASTER_SITES=	SF/ini-files/ini-files
6
DISTNAME=	ini-files-${PORTVERSION}
5
DISTNAME=	ini-files-${PORTVERSION}
7
6
8
MAINTAINER=	ports@FreeBSD.org
7
MAINTAINER=	ports@FreeBSD.org
Lines 11-37 WWW= https://sourceforge.net/projects/ini-files/ Link Here
11
10
12
LICENSE=	MIT
11
LICENSE=	MIT
13
12
14
BROKEN=		gnatmake: project files are no longer supported by gnatmake; use gprbuild instead
13
BUILD_DEPENDS=	gprbuild>0:devel/gprbuild
15
16
USES=		ada zip dos2unix
14
USES=		ada zip dos2unix
17
15
18
NO_WRKSUBDIR=	yes
16
_GPR_ARGS=      -j${MAKE_JOBS_NUMBER} -p
19
20
SFPATH=		ini-files/files/ini-files/ini-files-${PORTVERSION}
21
PORTDOCS=	ini_file_manager.txt
22
PORTEXAMPLES=	example.gpr test_config.adb runme.sh
23
17
24
OPTIONS_DEFINE=	DOCS EXAMPLES
18
WRKSRC=		${WRKDIR}/ini-files
25
19
26
post-extract:
20
post-extract:
27
	${CP} ${FILESDIR}/construct.gpr ${WRKSRC}
21
	${CP} ${FILESDIR}/construct.gpr ${WRKSRC}
28
	${MKDIR} ${WRKSRC}/src
22
	${MKDIR} ${WRKSRC}/src
29
	${MV} ${WRKSRC}/config.ad[bs] ${WRKSRC}/src
23
	${MV} ${WRKSRC}/config.ad[bs] ${WRKSRC}/src
30
	${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
31
		> ${WRKSRC}/runme.sh
32
24
33
do-build:
25
do-build:
34
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pconstruct)
26
	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gprbuild ${_GPR_ARGS} -P construct
35
27
36
do-install:
28
do-install:
37
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
29
	${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
Lines 44-57 do-install: Link Here
44
	${INSTALL_DATA} ${WRKSRC}/lib/*  \
36
	${INSTALL_DATA} ${WRKSRC}/lib/*  \
45
		${STAGEDIR}${PREFIX}/lib/ini_file_manager
37
		${STAGEDIR}${PREFIX}/lib/ini_file_manager
46
38
47
do-install-DOCS-on:
48
	${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	${INSTALL_DATA} ${WRKSRC}/ini_file_manager.txt ${STAGEDIR}${DOCSDIR}
50
51
do-install-EXAMPLES-on:
52
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
53
	${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
54
	${INSTALL_DATA} ${WRKSRC}/test_config.adb \
55
		${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
56
57
.include <bsd.port.mk>
39
.include <bsd.port.mk>
(-)b/misc/ini_file_manager/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (ini-files-03.zip) = eac1c59d766fe9ce3cde7c126fe98d618c30266cc3a6d93b7e0d0e2a8d47025d
1
TIMESTAMP = 1717109745
2
SIZE (ini-files-03.zip) = 7643
2
SHA256 (ini-files-11.zip) = 224e97dc0f88503c76736dc6c6d7220930ef09404f45c50fc339f19492966774
3
SIZE (ini-files-11.zip) = 14859
(-)b/misc/ini_file_manager/files/construct.gpr (-1 / +1 lines)
Lines 8-14 project Construct is Link Here
8
   for Library_Kind use "static";
8
   for Library_Kind use "static";
9
9
10
   package Builder is
10
   package Builder is
11
      for Default_Switches ("ada") use ("-gnatf", "-gnatws", "-O2");
11
      for Default_Switches ("ada") use ("-j0");
12
   end Builder;
12
   end Builder;
13
13
14
end Construct;
14
end Construct;
(-)a/misc/ini_file_manager/files/example.gpr (-12 lines)
Removed Link Here
1
with "ini_file_manager";
2
project Example is
3
4
   for Exec_Dir use "/tmp";
5
   for Object_Dir use "/tmp";
6
   for Main use ("test_config.adb");
7
8
   package Compiler is
9
      for Default_Switches ("ada") use ("-O2", "-gnat05");
10
   end Compiler;
11
12
end Example;
(-)a/misc/ini_file_manager/files/runme.sh.in (-17 lines)
Removed Link Here
1
#!/bin/sh
2
3
# This script will:
4
# 1) Build the example executable in /tmp
5
# 2) Tell the user how to execute it
6
7
GNATMAKE=@PREFIX@/gcc-aux/bin/gnatmake
8
ADA_PROJECT_PATH=@PREFIX@/lib/gnat
9
export ADA_PROJECT_PATH
10
11
${GNATMAKE} -P example
12
13
echo
14
echo "The source for the example is test_config.adb"
15
echo "The executable example is located in /tmp/test_config"
16
echo "It requires no options; just run it"
17
echo 'You may want to execute "rm /tmp/test_config*" when you are done.'

Return to bug 279805