1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 96038 2012-07-30 02:14:11Z dports@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name auto-multiple-choice-devel |
---|
7 | version 1.2.1.${svn.revision} |
---|
8 | categories x11 tex education |
---|
9 | platforms darwin |
---|
10 | license GPL-2+ |
---|
11 | maintainers nomaintainer |
---|
12 | |
---|
13 | description Auto Multiple Choice - Multiple Choice Papers Management |
---|
14 | long_description Utility to manage multiple choice questionnaires, \ |
---|
15 | with optionally mixed questions and answers. \ |
---|
16 | AMC provides automatic marking from papers' scans. \ |
---|
17 | Annotated papers are produced. Marks can be exported \ |
---|
18 | as an OpenOffice.org sheet file. \ |
---|
19 | \ |
---|
20 | This version can't print. Documents should be printed from OS X. |
---|
21 | |
---|
22 | homepage http://home.gna.org/auto-qcm |
---|
23 | conflicts auto-multiple-choice |
---|
24 | |
---|
25 | depends_build-append port:dblatex \ |
---|
26 | port:p5.12-xml-libxml |
---|
27 | depends_lib port:opencv |
---|
28 | depends_run port:p5.12-gtk2 \ |
---|
29 | port:p5.12-xml-simple \ |
---|
30 | port:p5.12-xml-writer \ |
---|
31 | port:p5.12-archive-zip \ |
---|
32 | port:p5.12-locale-gettext \ |
---|
33 | port:p5.12-digest-md5 \ |
---|
34 | port:p5.12-module-load-conditional \ |
---|
35 | port:p5.12-perlmagick \ |
---|
36 | port:p5.12-openoffice-oodoc \ |
---|
37 | port:p5.12-file-mimeinfo \ |
---|
38 | port:p5.12-dbd-sqlite \ |
---|
39 | port:p5.12-text-csv \ |
---|
40 | port:p5.12-file-basedir \ |
---|
41 | port:p5.12-email-mime \ |
---|
42 | port:p5.12-email-sender \ |
---|
43 | port:sqlite3 \ |
---|
44 | port:poppler \ |
---|
45 | port:netpbm \ |
---|
46 | port:librsvg \ |
---|
47 | port:gdk-pixbuf2 |
---|
48 | |
---|
49 | use_configure no |
---|
50 | |
---|
51 | fetch.type svn |
---|
52 | svn.revision 1451 |
---|
53 | svn.url svn://svn.gna.org/auto-qcm/trunk/ |
---|
54 | worksrcdir trunk |
---|
55 | |
---|
56 | build.args AMCCONF=macports \ |
---|
57 | BASEPATH=${prefix} \ |
---|
58 | LATEX_FREE=1 \ |
---|
59 | GCC_PP="${configure.cc} ${configure.cc_archflags}" |
---|
60 | |
---|
61 | # When building from source, some files should be configured before. |
---|
62 | # This pre-configuration use the make tool, not the configure tool. |
---|
63 | pre-build { |
---|
64 | system -W ${worksrcpath} "${build.cmd} version_files" |
---|
65 | } |
---|
66 | |
---|
67 | # When first installed auto-multiple-choice could fail to launch with |
---|
68 | # a "Format d'image non reconnu at /opt/local/lib/AMC/perl/AMC-gui.pl line 101" |
---|
69 | # ("Unknown image format?"). |
---|
70 | # The following update cache command makes auto-multiple-choice happy. |
---|
71 | post-activate { |
---|
72 | system "${prefix}/bin/gdk-pixbuf-query-loaders --update-cache 2>&1" |
---|
73 | } |
---|
74 | |
---|
75 | destroot.args AMCCONF=macports \ |
---|
76 | BASEPATH=${prefix} |
---|
77 | |
---|
78 | variant latex description "Add LaTeX support" { |
---|
79 | depends_run-append port:texlive-latex-extra \ |
---|
80 | port:texlive-latex-recommended \ |
---|
81 | port:texlive-fonts-recommended \ |
---|
82 | port:texlive-xetex \ |
---|
83 | port:texlive-lang-french |
---|
84 | |
---|
85 | build.args-delete LATEX_FREE=1 |
---|
86 | |
---|
87 | post-activate { |
---|
88 | system "${prefix}/bin/mktexlsr 2>&1" |
---|
89 | } |
---|
90 | |
---|
91 | post-deactivate { |
---|
92 | system "${prefix}/bin/mktexlsr 2>&1" |
---|
93 | } |
---|
94 | } |
---|
95 | |
---|
96 | default_variants +latex |
---|