aboutsummaryrefslogtreecommitdiffstats
path: root/ports-mgmt
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2016-04-30 15:27:22 +0800
committermarino <marino@FreeBSD.org>2016-04-30 15:27:22 +0800
commit23b7ffec5591fe89cf7d49c927e2b469d14bcd54 (patch)
treebf7286331408bdc1092668913ffb8ab41f90e1c9 /ports-mgmt
parent05b71c3346cf7c497f3222e07a239495aaf3d270 (diff)
downloadfreebsd-ports-gnome-23b7ffec5591fe89cf7d49c927e2b469d14bcd54.tar.gz
freebsd-ports-gnome-23b7ffec5591fe89cf7d49c927e2b469d14bcd54.tar.zst
freebsd-ports-gnome-23b7ffec5591fe89cf7d49c927e2b469d14bcd54.zip
ports-mgmt/synth: Stop using bundled adacurses & IFM
Now that the Ada Framework is based on GCC6 by default, it is no longer required for Synth to bundle and build a local version of devel/adacurses and misc/ini_file_manager. Switch the port to normal BUILD_DEPENDS and remove the bundle distfile information. No bump is required because these libraries are statically linked into Synth, so there's no practical difference between older and newer packages.
Diffstat (limited to 'ports-mgmt')
-rw-r--r--ports-mgmt/synth/Makefile21
-rw-r--r--ports-mgmt/synth/distinfo2
-rw-r--r--ports-mgmt/synth/files/patch-default.gpr13
3 files changed, 16 insertions, 20 deletions
diff --git a/ports-mgmt/synth/Makefile b/ports-mgmt/synth/Makefile
index 64d17a769c4d..397334652b12 100644
--- a/ports-mgmt/synth/Makefile
+++ b/ports-mgmt/synth/Makefile
@@ -12,35 +12,20 @@ COMMENT= Custom package repository builder for FreeBSD and DragonFly
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/License.txt
-#BUILD_DEPENDS= ${LOCALBASE}/lib/gnat/${IFM}.gpr:misc/${IFM} \
-# ${LOCALBASE}/lib/gnat/${AC}.gpr:devel/${AC}
+BUILD_DEPENDS= ${GPR}/ini_file_manager.gpr:misc/ini_file_manager \
+ ${GPR}/adacurses.gpr:devel/adacurses
USES= ada:6 ncurses:port
USE_GITHUB= yes
GH_ACCOUNT= jrmarino
-GH_PROJECT= synth_external:bundle
-GH_TAGNAME= v1.3:bundle
-# When framework is moved to Ada6, the ada-util and ini-file-manager
-# libraries can be used as prebuilt (switch default.gpr url)
-# ncurses:port is required for FreeBSD 11 and DragonFly (base ncurses
-# malfunctions in that it won't restore TTY mode correctly)
-
-COBJFILES= ncurses_compat.o c_varargs_to_ada.o c_threaded_variables.o
+GPR= ${LOCALBASE}/lib/gnat
post-extract:
- @${MV} ${WRKSRC_bundle}/external ${WRKSRC}
@${REINPLACE_CMD} -e "s|/usr/local|${LOCALBASE}|" \
- ${WRKSRC}/external/lib/gnat/adacurses.gpr \
${WRKSRC}/src/definitions.ads
do-build:
- # To avoid requiring gprbuild as a dependency, compile C manually
-.for csrc in ${COBJFILES:R}
- (cd ${WRKSRC}/external/include/adacurses && \
- ${SETENV} ${MAKE_ENV} gcc -I. ${CFLAGS} -c ${csrc}.c \
- -o ../../build/adacurses/${csrc}.o)
-.endfor
(cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} \
gcc -c unix_core.c -o ../build/unix_core.o)
(cd ${WRKSRC}/synthexec && ${SETENV} ${MAKE_ENV} \
diff --git a/ports-mgmt/synth/distinfo b/ports-mgmt/synth/distinfo
index 00d105f7013e..d2581d3f0993 100644
--- a/ports-mgmt/synth/distinfo
+++ b/ports-mgmt/synth/distinfo
@@ -1,4 +1,2 @@
SHA256 (jrmarino-synth-v1.34_GH0.tar.gz) = c7f0150ff1ee12cb6006797bc2c7b0c4a2b1478f689b7d0f73b02a420d57bcb2
SIZE (jrmarino-synth-v1.34_GH0.tar.gz) = 101000
-SHA256 (jrmarino-synth_external-v1.3_GH0.tar.gz) = 2afc03e494d2394446eabdb5244967c202a79b449c7cad7ea67a87807cc25f44
-SIZE (jrmarino-synth_external-v1.3_GH0.tar.gz) = 209283
diff --git a/ports-mgmt/synth/files/patch-default.gpr b/ports-mgmt/synth/files/patch-default.gpr
new file mode 100644
index 000000000000..8e33ac448b09
--- /dev/null
+++ b/ports-mgmt/synth/files/patch-default.gpr
@@ -0,0 +1,13 @@
+--- default.gpr.orig 2016-04-19 08:59:22 UTC
++++ default.gpr
+@@ -1,8 +1,5 @@
+-with "external/lib/gnat/ini_file_manager.gpr";
+-with "external/lib/gnat/adacurses.gpr";
+-
+--- with "ini_file_manager.gpr";
+--- with "adacurses.gpr";
++with "ini_file_manager.gpr";
++with "adacurses.gpr";
+
+ project Default is
+