From owner-svn-ports-all@FreeBSD.ORG Sat Mar 29 13:17:57 2014 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 53C79576; Sat, 29 Mar 2014 13:17:57 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 401FFF80; Sat, 29 Mar 2014 13:17:57 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2TDHvOZ084136; Sat, 29 Mar 2014 13:17:57 GMT (envelope-from marino@svn.freebsd.org) Received: (from marino@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2TDHuhv084131; Sat, 29 Mar 2014 13:17:56 GMT (envelope-from marino@svn.freebsd.org) Message-Id: <201403291317.s2TDHuhv084131@svn.freebsd.org> From: John Marino Date: Sat, 29 Mar 2014 13:17:56 +0000 (UTC) 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 X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Mar 2014 13:17:57 -0000 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 +# $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 + +.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 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