Date: Sat, 29 Mar 2014 13:17:56 +0000 (UTC) From: John Marino <marino@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r349505 - in head/devel/pcsc-ada: . files Message-ID: <201403291317.s2TDHuhv084131@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marino Date: Sat Mar 29 13:17:55 2014 New Revision: 349505 URL: http://svnweb.freebsd.org/changeset/ports/349505 QAT: https://qat.redports.org/buildarchive/r349505/ Log: Add new Ada port: devel/pcsc-ada PCSC/Ada provides a thick Ada binding to PC/SC-middleware. The library allows programs written in Ada to communicate with smart cards using the SCard API. WWW: http://www.codelabs.ch/pcscada Added: head/devel/pcsc-ada/ head/devel/pcsc-ada/Makefile (contents, props changed) head/devel/pcsc-ada/distinfo (contents, props changed) head/devel/pcsc-ada/files/ head/devel/pcsc-ada/files/pcscada.gpr (contents, props changed) head/devel/pcsc-ada/pkg-descr (contents, props changed) head/devel/pcsc-ada/pkg-plist (contents, props changed) Added: head/devel/pcsc-ada/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcsc-ada/Makefile Sat Mar 29 13:17:55 2014 (r349505) @@ -0,0 +1,84 @@ +# Created by: John Marino <marino@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= pcsc-ada +PORTVERSION= 0.7.1 +CATEGORIES= devel +MASTER_SITES= http://www.codelabs.ch/download/ +DISTNAME= libpcscada-${PORTVERSION} + +MAINTAINER= marino@FreeBSD.org +COMMENT= Ada binding to PC/SC middleware (Smart card interface) + +LICENSE= LGPL21 + +USES= ada tar:bzip2 +ALL_TARGET= all +GPRLINK= "-L${LOCALBASE}/lib", "-lpcsclite" +MAKE_ARGS+= NUM_CPUS=${MAKE_JOBS_NUMBER} \ + LIBRARY_KIND=static + +OPTIONS_DEFINE= UNIT_TEST INTF_TEST DOCS EXAMPLES +OPTIONS_SUB= yes +UNIT_TEST_DESC= Run unit test suite before installation +INTF_TEST_DESC= Run interface tests against installed smart card after build +NO_OPTIONS_SORT=yes + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MUNIT_TEST} || ${PORT_OPTIONS:MINTF_TEST} +BUILD_DEPENDS+= ${LOCALBASE}/lib/gnat/ahven.gpr:${PORTSDIR}/devel/ahven +. if ${PORT_OPTIONS:MUNIT_TEST} +ALL_TARGET+= utests +. endif +. if ${PORT_OPTIONS:MINTF_TEST} +ALL_TARGET+= itests +. endif +.endif + +LIB_DEPENDS+= libpcsclite.so:${PORTSDIR}/devel/pcsc-lite + +.if ${PORT_OPTIONS:MDOCS} +BUILD_DEPENDS+= asciidoc:${PORTSDIR}/textproc/asciidoc \ + source-highlight:${PORTSDIR}/textproc/source-highlight +ALL_TARGET+= doc +USES+= gmake +.endif + +.if ${PORT_OPTIONS:MEXAMPLES} +ALL_TARGET+= examples +PORTEXAMPLES= src bin +.endif + +post-patch: + ${REINPLACE_CMD} -e 's|"-lpcsclite"|${GPRLINK}|' \ + ${WRKSRC}/pcscada_lib.gpr + (cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|"-lpcsclite");|"-L${LOCALBASE}/lib"); pragma Linker_Options ("-lpcsclite");|' \ + examples/cardd/cardd.adb \ + examples/sample/sample.adb \ + examples/pinverify/pinpad.adb \ + examples/thin/thin_example.adb \ + tests/runner.adb \ + tests/test_pcscada.adb) + +do-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/gnat \ + ${STAGEDIR}${PREFIX}/lib/pcscada \ + ${STAGEDIR}${PREFIX}/include/pcscada + ${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/include/pcscada + ${INSTALL_DATA} ${WRKSRC}/lib/* ${STAGEDIR}${PREFIX}/lib/pcscada + ${INSTALL_DATA} ${FILESDIR}/pcscada.gpr ${STAGEDIR}${PREFIX}/lib/gnat +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}) +.endif +.if ${PORT_OPTIONS:MEXAMPLES} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/src ${STAGEDIR}${EXAMPLESDIR}/bin + (cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . \ + ${STAGEDIR}${EXAMPLESDIR}/src) + ${RM} ${STAGEDIR}${EXAMPLESDIR}/src/*/*.bak + (cd ${WRKSRC}/obj/examples && ${INSTALL_PROGRAM} cardd pinpad \ + thin_example ${STAGEDIR}${EXAMPLESDIR}/bin) +.endif + +.include <bsd.port.mk> Added: head/devel/pcsc-ada/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcsc-ada/distinfo Sat Mar 29 13:17:55 2014 (r349505) @@ -0,0 +1,2 @@ +SHA256 (libpcscada-0.7.1.tar.bz2) = a9ef194882d2fee0435dca1c16842c433e3818d6002d8bd28c948b2ab5c2f4c3 +SIZE (libpcscada-0.7.1.tar.bz2) = 58204 Added: head/devel/pcsc-ada/files/pcscada.gpr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcsc-ada/files/pcscada.gpr Sat Mar 29 13:17:55 2014 (r349505) @@ -0,0 +1,7 @@ +project PCSCada is + for Source_Dirs use ("../../include/pcscada"); + for Library_Name use "pcscada"; + for Library_Dir use "../../lib/pcscada"; + for Library_Kind use "static"; + for Externally_Built use "true"; +end PCSCada; Added: head/devel/pcsc-ada/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcsc-ada/pkg-descr Sat Mar 29 13:17:55 2014 (r349505) @@ -0,0 +1,5 @@ +PCSC/Ada provides a thick Ada binding to PC/SC-middleware. The library +allows programs written in Ada to communicate with smart cards using the +SCard API. + +WWW: http://www.codelabs.ch/pcscada Added: head/devel/pcsc-ada/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/pcsc-ada/pkg-plist Sat Mar 29 13:17:55 2014 (r349505) @@ -0,0 +1,34 @@ +include/pcscada/pcsc-scard-conversion.adb +include/pcscada/pcsc-scard-conversion.ads +include/pcscada/pcsc-scard-monitor.adb +include/pcscada/pcsc-scard-monitor.ads +include/pcscada/pcsc-scard-utils.adb +include/pcscada/pcsc-scard-utils.ads +include/pcscada/pcsc-scard.adb +include/pcscada/pcsc-scard.ads +include/pcscada/pcsc-thin-ifdhandler.ads +include/pcscada/pcsc-thin-reader.ads +include/pcscada/pcsc-thin.adb +include/pcscada/pcsc-thin.ads +include/pcscada/pcsc-version.ads +include/pcscada/pcsc.ads +lib/gnat/pcscada.gpr +lib/pcscada/libpcscada.a +lib/pcscada/pcsc-scard-conversion.ali +lib/pcscada/pcsc-scard-monitor.ali +lib/pcscada/pcsc-scard-utils.ali +lib/pcscada/pcsc-scard.ali +lib/pcscada/pcsc-thin-ifdhandler.ali +lib/pcscada/pcsc-thin-reader.ali +lib/pcscada/pcsc-thin.ali +lib/pcscada/pcsc-version.ali +lib/pcscada/pcsc.ali +%%PORTDOCS%%%%DOCSDIR%%/html/CHANGELOG.html +%%PORTDOCS%%%%DOCSDIR%%/html/README.html +%%PORTDOCS%%%%DOCSDIR%%/html/asciidoc.css +%%PORTDOCS%%%%DOCSDIR%%/html/index.html +%%PORTDOCS%%@dirrmtry %%DOCSDIR%%/html +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% +@dirrm lib/pcscada +@dirrmtry lib/gnat +@dirrm include/pcscada
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403291317.s2TDHuhv084131>