pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel Add devel/adacurses to pkgsrc



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6540fb39b233
branches:  trunk
changeset: 355747:6540fb39b233
user:      marino <marino%pkgsrc.org@localhost>
date:      Mon Dec 12 00:36:19 2016 +0000

description:
Add devel/adacurses to pkgsrc

The ncurses Ada95 binding was originally written by Juergen Pfeifer in
1996.  It has been improved several times by Juergen, as wll as
Eugen V. Melaragno and Nicolas Boulenguez.

diffstat:

 devel/Makefile                         |    3 +-
 devel/adacurses/DESCR                  |    3 +
 devel/adacurses/Makefile               |   57 ++++++++++++++++
 devel/adacurses/PLIST                  |  113 +++++++++++++++++++++++++++++++++
 devel/adacurses/distinfo               |    6 +
 devel/adacurses/files/adacurses.gpr.in |   56 ++++++++++++++++
 6 files changed, 237 insertions(+), 1 deletions(-)

diffs (272 lines):

diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/Makefile
--- a/devel/Makefile    Sun Dec 11 23:53:43 2016 +0000
+++ b/devel/Makefile    Mon Dec 12 00:36:19 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2342 2016/12/11 00:27:37 wen Exp $
+# $NetBSD: Makefile,v 1.2343 2016/12/12 00:36:19 marino Exp $
 #
 
 COMMENT=       Development utilities
@@ -34,6 +34,7 @@
 SUBDIR+=       acme
 SUBDIR+=       acr
 SUBDIR+=       acunia-jam
+SUBDIR+=       adacurses
 SUBDIR+=       adocman
 SUBDIR+=       aegis
 SUBDIR+=       afl
diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/adacurses/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/adacurses/DESCR     Mon Dec 12 00:36:19 2016 +0000
@@ -0,0 +1,3 @@
+The ncurses Ada95 binding was originally written by Juergen Pfeifer in
+1996.  It has been improved several times by Juergen, as wll as
+Eugen V. Melaragno and Nicolas Boulenguez.
diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/adacurses/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/adacurses/Makefile  Mon Dec 12 00:36:19 2016 +0000
@@ -0,0 +1,57 @@
+# $NetBSD: Makefile,v 1.1 2016/12/12 00:36:19 marino Exp $
+
+PKGNAME=       adacurses-${ACVERSION}
+CATEGORIES=    devel
+MASTER_SITES=  ftp://invisible-island.net/AdaCurses/
+DISTFILES=     AdaCurses-${ACVERSION}.tgz
+
+MAINTAINER=    draco%marino.st@localhost
+HOMEPAGE=      http://invisible-island.net/ncurses/ncurses-Ada95.html
+COMMENT=       Ada95 bindings for ncurses
+LICENSE=       mit
+
+ACVERSION=     20150808
+WRKSRC=                ${WRKDIR}/AdaCurses-${ACVERSION}
+USE_LANGUAGES= c ada
+
+MAKE_JOBS_SAFE=        no
+USE_TOOLS=     gmake pkg-config
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS=        --with-ada-include=${PREFIX}/include/adacurses \
+               --with-ada-objects=${PREFIX}/lib/adacurses \
+               --with-curses-dir=${LOCALBASE} \
+               --libdir=${PREFIX}/lib/adacurses \
+               --enable-widec
+PLIST_SUBST=   atic=adacurses/terminal_interface-curses
+
+USE_BUILTIN.ncurses=   no
+SUBST_CLASSES=         adagen pragma sample
+
+SUBST_STAGE.adagen=    post-patch
+SUBST_FILES.adagen=    gen/Makefile.in
+SUBST_SED.adagen=      -e '/(INSTALL_PROG)/d' -e 's|@ADAGEN_LDFLAGS@||'
+SUBST_MESSAGE.adagen=  Adjust gen Makefile
+
+SUBST_STAGE.sample=    post-patch
+SUBST_FILES.sample=    samples/Makefile.in
+SUBST_SED.sample=      -e 's|@LIBS@|@LIBS@ -lmenu -lform -lpanel|'
+SUBST_MESSAGE.sample=  Adjust samples Makefile
+
+SUBST_STAGE.pragma=    post-patch
+SUBST_FILES.pragma=    gen/terminal_interface-curses.ads.m4 \
+                       gen/terminal_interface-curses-menus.ads.m4 \
+                       gen/terminal_interface-curses-forms.ads.m4 \
+                       gen/terminal_interface-curses-panels.ads.m4
+SUBST_SED.pragma=      -e '/pragma Linker_Options/d'
+SUBST_MESSAGE.pragma=  Explicitly link form, panel and menu libraries
+
+post-install:
+       @${MKDIR} ${DESTDIR}${PREFIX}/lib/gnat
+       ${INSTALL_SCRIPT} ${WRKSRC}/gen/adacurses-config \
+               ${DESTDIR}${PREFIX}/bin/
+       ${SED} "s|@PREFIX@|${LOCALBASE}|g" ${FILESDIR}/adacurses.gpr.in > \
+               ${DESTDIR}${PREFIX}/lib/gnat/adacurses.gpr
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/adacurses/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/adacurses/PLIST     Mon Dec 12 00:36:19 2016 +0000
@@ -0,0 +1,113 @@
+bin/adacurses-config
+include/${atic}-aux.adb
+include/${atic}-aux.ads
+include/${atic}-forms-field_types-alpha.adb
+include/${atic}-forms-field_types-alpha.ads
+include/${atic}-forms-field_types-alphanumeric.adb
+include/${atic}-forms-field_types-alphanumeric.ads
+include/${atic}-forms-field_types-enumeration-ada.adb
+include/${atic}-forms-field_types-enumeration-ada.ads
+include/${atic}-forms-field_types-enumeration.adb
+include/${atic}-forms-field_types-enumeration.ads
+include/${atic}-forms-field_types-intfield.adb
+include/${atic}-forms-field_types-intfield.ads
+include/${atic}-forms-field_types-ipv4_address.adb
+include/${atic}-forms-field_types-ipv4_address.ads
+include/${atic}-forms-field_types-numeric.adb
+include/${atic}-forms-field_types-numeric.ads
+include/${atic}-forms-field_types-regexp.adb
+include/${atic}-forms-field_types-regexp.ads
+include/${atic}-forms-field_types-user-choice.adb
+include/${atic}-forms-field_types-user-choice.ads
+include/${atic}-forms-field_types-user.adb
+include/${atic}-forms-field_types-user.ads
+include/${atic}-forms-field_types.adb
+include/${atic}-forms-field_types.ads
+include/${atic}-forms-field_user_data.adb
+include/${atic}-forms-field_user_data.ads
+include/${atic}-forms-form_user_data.adb
+include/${atic}-forms-form_user_data.ads
+include/${atic}-forms.adb
+include/${atic}-forms.ads
+include/${atic}-menus-item_user_data.adb
+include/${atic}-menus-item_user_data.ads
+include/${atic}-menus-menu_user_data.adb
+include/${atic}-menus-menu_user_data.ads
+include/${atic}-menus.adb
+include/${atic}-menus.ads
+include/${atic}-mouse.adb
+include/${atic}-mouse.ads
+include/${atic}-panels-user_data.adb
+include/${atic}-panels-user_data.ads
+include/${atic}-panels.adb
+include/${atic}-panels.ads
+include/${atic}-putwin.adb
+include/${atic}-putwin.ads
+include/${atic}-termcap.adb
+include/${atic}-termcap.ads
+include/${atic}-terminfo.adb
+include/${atic}-terminfo.ads
+include/${atic}-text_io-aux.adb
+include/${atic}-text_io-aux.ads
+include/${atic}-text_io-complex_io.adb
+include/${atic}-text_io-complex_io.ads
+include/${atic}-text_io-decimal_io.adb
+include/${atic}-text_io-decimal_io.ads
+include/${atic}-text_io-enumeration_io.adb
+include/${atic}-text_io-enumeration_io.ads
+include/${atic}-text_io-fixed_io.adb
+include/${atic}-text_io-fixed_io.ads
+include/${atic}-text_io-float_io.adb
+include/${atic}-text_io-float_io.ads
+include/${atic}-text_io-integer_io.adb
+include/${atic}-text_io-integer_io.ads
+include/${atic}-text_io-modular_io.adb
+include/${atic}-text_io-modular_io.ads
+include/${atic}-text_io.adb
+include/${atic}-text_io.ads
+include/${atic}-trace.adb
+include/${atic}-trace.ads
+include/${atic}.adb
+include/${atic}.ads
+include/${atic}_constants.ads
+include/adacurses/terminal_interface.ads
+lib/adacurses/libAdaCurses.a
+lib/${atic}-aux.ali
+lib/${atic}-forms-field_types-alpha.ali
+lib/${atic}-forms-field_types-alphanumeric.ali
+lib/${atic}-forms-field_types-enumeration-ada.ali
+lib/${atic}-forms-field_types-enumeration.ali
+lib/${atic}-forms-field_types-intfield.ali
+lib/${atic}-forms-field_types-ipv4_address.ali
+lib/${atic}-forms-field_types-numeric.ali
+lib/${atic}-forms-field_types-regexp.ali
+lib/${atic}-forms-field_types-user-choice.ali
+lib/${atic}-forms-field_types-user.ali
+lib/${atic}-forms-field_types.ali
+lib/${atic}-forms-field_user_data.ali
+lib/${atic}-forms-form_user_data.ali
+lib/${atic}-forms.ali
+lib/${atic}-menus-item_user_data.ali
+lib/${atic}-menus-menu_user_data.ali
+lib/${atic}-menus.ali
+lib/${atic}-mouse.ali
+lib/${atic}-panels-user_data.ali
+lib/${atic}-panels.ali
+lib/${atic}-putwin.ali
+lib/${atic}-termcap.ali
+lib/${atic}-terminfo.ali
+lib/${atic}-text_io-aux.ali
+lib/${atic}-text_io-complex_io.ali
+lib/${atic}-text_io-decimal_io.ali
+lib/${atic}-text_io-enumeration_io.ali
+lib/${atic}-text_io-fixed_io.ali
+lib/${atic}-text_io-float_io.ali
+lib/${atic}-text_io-integer_io.ali
+lib/${atic}-text_io-modular_io.ali
+lib/${atic}-text_io.ali
+lib/${atic}-trace.ali
+lib/${atic}.ali
+lib/${atic}_constants.ali
+lib/adacurses/terminal_interface.ali
+lib/gnat/adacurses.gpr
+man/man1/adacurses-config.1
diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/adacurses/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/adacurses/distinfo  Mon Dec 12 00:36:19 2016 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2016/12/12 00:36:19 marino Exp $
+
+SHA1 (AdaCurses-20150808.tgz) = f63f76c0d9db1812d56824455a80892625b75b08
+RMD160 (AdaCurses-20150808.tgz) = 611df769b5eeac0bf69e7e59b49795108a644e27
+SHA512 (AdaCurses-20150808.tgz) = 4a20f090786dd644b1f692ff6098aa8a644e530119b82127a860d9772100b00c81f32de9b3fcf441a8478b6b13c4780e2563ceb6eff94b64158e499528c44015
+Size (AdaCurses-20150808.tgz) = 675359 bytes
diff -r 3fcdcbbe7fd8 -r 6540fb39b233 devel/adacurses/files/adacurses.gpr.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/adacurses/files/adacurses.gpr.in    Mon Dec 12 00:36:19 2016 +0000
@@ -0,0 +1,56 @@
+library project ADACURSES is
+
+   for Languages use ("Ada");
+
+   type Link_Style is ("dynamic", "static");
+   type Capability is ("yes", "no");
+
+   Ncurses_Link : Link_Style := external ("NCURSES_LINK", "dynamic");
+   Add_Menu     : Capability := external ("NCURSES_MENU", "no");
+   Add_Form     : Capability := external ("NCURSES_FORM", "no");
+   Add_Panel    : Capability := external ("NCURSES_PANEL", "no");
+
+   for Source_Dirs use ("../../include/adacurses");
+   for Library_Dir use "../../lib/adacurses";
+   for Library_Name use "AdaCurses";
+   for Library_Kind use "static";
+   for Externally_Built use "True";
+
+   D_Base_Flags := ("-L@PREFIX@/lib", "-Wl,-R,@PREFIX@/lib", "-lncurses");
+   S_Base_Flags := ("@PREFIX@/lib/libncurses.a");
+
+   D_Menu_Flags := ();
+   S_Menu_Flags := ();
+   D_Form_Flags := ();
+   S_Form_Flags := ();
+   D_Panel_Flags := ();
+   S_Panel_Flags := ();
+
+   case Add_Menu is
+      when "no"  => null;
+      when "yes" => D_Menu_Flags := ("-lmenu");
+                    S_Menu_Flags := ("@PREFIX@/lib/libmenu.a");
+   end case;
+   case Add_Form is
+      when "no"  => null;
+      when "yes" => D_Form_Flags := ("-lform");
+                    S_Form_Flags := ("@PREFIX@/lib/libform.a");
+   end case;
+   case Add_Panel is
+      when "no"  => null;
+      when "yes" => D_Panel_Flags := ("-lpanel");
+                    S_Panel_Flags := ("@PREFIX@/lib/libpanel.a");
+   end case;
+
+   package Linker is
+      case Ncurses_Link is
+         when "dynamic" =>
+            for Linker_Options use
+                D_Base_Flags & D_Menu_Flags & D_Form_Flags & D_Panel_Flags;
+         when "static" =>
+            for Linker_Options use
+                S_Base_Flags & S_Menu_Flags & S_Form_Flags & S_Panel_Flags;
+      end case;
+   end Linker;
+
+end ADACURSES;



Home | Main Index | Thread Index | Old Index