# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup perl5 1.0 perl5.branches 5.24 name auto-multiple-choice version 1.2.1 revision 6 categories x11 tex education platforms darwin license GPL-2+ maintainers laposte.net:joel.brogniart openmaintainer description Auto Multiple Choice - Multiple Choice Papers Management long_description Utility to manage multiple choice questionnaires, \ with optionally mixed questions and answers. \ AMC provides automatic marking from papers' scans. \ Annotated papers are produced. Marks can be exported \ as an OpenOffice.org sheet file. \ \ This version can't print directly with CUPS. User should set \ "Printing method" to "file" or "command" in preferences. \ "file" method produce PDF files that could be printed from OS X. homepage http://home.gna.org/auto-qcm master_sites http://download.gna.org/auto-qcm/macports/ distfiles ${name}_${version}_precomp${extract.suffix} checksums sha256 534b1a9cd855532bd6c065a29e09dec2ba07c8ee155317e416260a9d5942420a \ rmd160 760b64682e583147b9a774233b10de68513353e3 depends_lib-append port:opencv depends_run port:p${perl5.major}-gtk2 \ port:p${perl5.major}-xml-simple \ port:p${perl5.major}-xml-writer \ port:p${perl5.major}-archive-zip \ port:p${perl5.major}-locale-gettext \ port:p${perl5.major}-digest-md5 \ port:p${perl5.major}-module-load-conditional \ port:p${perl5.major}-perlmagick \ port:p${perl5.major}-openoffice-oodoc \ port:p${perl5.major}-file-mimeinfo \ port:p${perl5.major}-dbd-sqlite \ port:p${perl5.major}-text-csv \ port:p${perl5.major}-file-basedir \ port:p${perl5.major}-email-mime \ port:p${perl5.major}-email-sender \ port:sqlite3 \ port:poppler \ port:netpbm \ port:librsvg \ port:gdk-pixbuf2 patchfiles patch-makefile-macport.conf.diff use_configure no pre-build { build.args-append PERLPATH=${perl5.bin} PERLDIR=${perl5.lib} } build.args AMCCONF=macports \ BASEPATH=${prefix} \ LATEX_FREE=1 \ GCC_PP="${configure.cc} ${configure.cc_archflags}" pre-destroot { destroot.args-append PERLDIR=${perl5.lib} } destroot.args AMCCONF=macports \ BASEPATH=${prefix} variant latex description "Add LaTeX support" { depends_run-append port:texlive-latex-extra \ port:texlive-latex-recommended \ port:texlive-fonts-recommended \ port:texlive-xetex \ port:texlive-lang-french build.args-delete LATEX_FREE=1 post-activate { system "${prefix}/bin/mktexlsr 2>&1" } post-deactivate { system "${prefix}/bin/mktexlsr 2>&1" } } default_variants +latex livecheck.type regex livecheck.url [lindex ${master_sites} 0] livecheck.regex ${name}_(\[0-9.\]+)_