mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-18 00:10:04 +00:00
misc/ini_file_manager: update to version 11
And unbreak (see PR 278922) PR: 279805 Reported by: jonc@chen.org.nz
This commit is contained in:
parent
3a0e9aa1c8
commit
e01497c746
@ -1,8 +1,7 @@
|
||||
PORTNAME= ini_file_manager
|
||||
PORTVERSION= 03
|
||||
PORTREVISION= 4
|
||||
PORTVERSION= 11
|
||||
CATEGORIES= misc
|
||||
MASTER_SITES= http://sourceforge.net/projects/${SFPATH}/
|
||||
MASTER_SITES= SF/ini-files/ini-files
|
||||
DISTNAME= ini-files-${PORTVERSION}
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
@ -11,27 +10,20 @@ WWW= https://sourceforge.net/projects/ini-files/
|
||||
|
||||
LICENSE= MIT
|
||||
|
||||
BROKEN= gnatmake: project files are no longer supported by gnatmake; use gprbuild instead
|
||||
|
||||
BUILD_DEPENDS= gprbuild>0:devel/gprbuild
|
||||
USES= ada zip dos2unix
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
_GPR_ARGS= -j${MAKE_JOBS_NUMBER} -p
|
||||
|
||||
SFPATH= ini-files/files/ini-files/ini-files-${PORTVERSION}
|
||||
PORTDOCS= ini_file_manager.txt
|
||||
PORTEXAMPLES= example.gpr test_config.adb runme.sh
|
||||
|
||||
OPTIONS_DEFINE= DOCS EXAMPLES
|
||||
WRKSRC= ${WRKDIR}/ini-files
|
||||
|
||||
post-extract:
|
||||
${CP} ${FILESDIR}/construct.gpr ${WRKSRC}
|
||||
${MKDIR} ${WRKSRC}/src
|
||||
${MV} ${WRKSRC}/config.ad[bs] ${WRKSRC}/src
|
||||
${SED} -e "s,@PREFIX@,${LOCALBASE},g" ${FILESDIR}/runme.sh.in \
|
||||
> ${WRKSRC}/runme.sh
|
||||
|
||||
do-build:
|
||||
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gnatmake -p -Pconstruct)
|
||||
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} gprbuild ${_GPR_ARGS} -P construct
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \
|
||||
@ -44,14 +36,4 @@ do-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/lib/* \
|
||||
${STAGEDIR}${PREFIX}/lib/ini_file_manager
|
||||
|
||||
do-install-DOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ini_file_manager.txt ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
do-install-EXAMPLES-on:
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/runme.sh ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/test_config.adb \
|
||||
${FILESDIR}/example.gpr ${STAGEDIR}${EXAMPLESDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (ini-files-03.zip) = eac1c59d766fe9ce3cde7c126fe98d618c30266cc3a6d93b7e0d0e2a8d47025d
|
||||
SIZE (ini-files-03.zip) = 7643
|
||||
TIMESTAMP = 1717109745
|
||||
SHA256 (ini-files-11.zip) = 224e97dc0f88503c76736dc6c6d7220930ef09404f45c50fc339f19492966774
|
||||
SIZE (ini-files-11.zip) = 14859
|
||||
|
@ -8,7 +8,7 @@ project Construct is
|
||||
for Library_Kind use "static";
|
||||
|
||||
package Builder is
|
||||
for Default_Switches ("ada") use ("-gnatf", "-gnatws", "-O2");
|
||||
for Default_Switches ("ada") use ("-j0");
|
||||
end Builder;
|
||||
|
||||
end Construct;
|
||||
|
@ -1,12 +0,0 @@
|
||||
with "ini_file_manager";
|
||||
project Example is
|
||||
|
||||
for Exec_Dir use "/tmp";
|
||||
for Object_Dir use "/tmp";
|
||||
for Main use ("test_config.adb");
|
||||
|
||||
package Compiler is
|
||||
for Default_Switches ("ada") use ("-O2", "-gnat05");
|
||||
end Compiler;
|
||||
|
||||
end Example;
|
@ -1,17 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# This script will:
|
||||
# 1) Build the example executable in /tmp
|
||||
# 2) Tell the user how to execute it
|
||||
|
||||
GNATMAKE=@PREFIX@/gcc-aux/bin/gnatmake
|
||||
ADA_PROJECT_PATH=@PREFIX@/lib/gnat
|
||||
export ADA_PROJECT_PATH
|
||||
|
||||
${GNATMAKE} -P example
|
||||
|
||||
echo
|
||||
echo "The source for the example is test_config.adb"
|
||||
echo "The executable example is located in /tmp/test_config"
|
||||
echo "It requires no options; just run it"
|
||||
echo 'You may want to execute "rm /tmp/test_config*" when you are done.'
|
Loading…
Reference in New Issue
Block a user