diff options
Diffstat (limited to 'app-office')
-rw-r--r-- | app-office/Manifest.gz | bin | 7891 -> 7892 bytes | |||
-rw-r--r-- | app-office/auto-multiple-choice/Manifest | 3 | ||||
-rw-r--r-- | app-office/auto-multiple-choice/auto-multiple-choice-1.5.2.ebuild | 94 | ||||
-rw-r--r-- | app-office/auto-multiple-choice/files/auto-multiple-choice-1.5.2-conf.patch | 52 |
4 files changed, 149 insertions, 0 deletions
diff --git a/app-office/Manifest.gz b/app-office/Manifest.gz Binary files differindex e32cba0191e2..b11a896a765e 100644 --- a/app-office/Manifest.gz +++ b/app-office/Manifest.gz diff --git a/app-office/auto-multiple-choice/Manifest b/app-office/auto-multiple-choice/Manifest index 9055db92f6d5..5d7086f134ce 100644 --- a/app-office/auto-multiple-choice/Manifest +++ b/app-office/auto-multiple-choice/Manifest @@ -1,5 +1,8 @@ AUX auto-multiple-choice-1.3.0-conf.patch 1889 BLAKE2B aa39f1525f6067e8025094b3c7437f72c11eec7cb5b0fcbbe68388b80c1ff01050f2fc224671e1a6901f52d51e761f2702d17ce0e75f5ca67ffc8d721ef37cb6 SHA512 6c7cce8383dbbb23646b96785b69dd75f6d3e842d6712b3b5741a5151f7dde5a9ee05bd35e3dee374641f453128e8008304cc6001d9a1db707528ecb7b1ba496 AUX auto-multiple-choice-1.3.0-desktop.patch 637 BLAKE2B bf06b2761d35b669b88a0915a273022045e169e09dd76ca4ae40723d44d57fabb518dec83f811124421cfc82a53cd1435c60c6763b534d6a3ae4449b2bc00de6 SHA512 b1eec21b2f640bfdf7a4d7d956a71b2fa9889a6d5428cc7eedc1352e845477c3a81607d0c1502b4f57967264384aff5dcc2162bb552544b962c383dc7f978ffa +AUX auto-multiple-choice-1.5.2-conf.patch 1992 BLAKE2B b33a5a02ad559e50e3630f4da97ae140d803b11a1685d1d3334ade350b9bbc0c0ab47c582b1cc2e3e7700577fe01b24342b91f12e8174a6f6158361462237921 SHA512 ea51318a700a8d1e0b5c54d8d34ee19dedeac300d7c373fae56b9c7de0441b60a3de1f905be5a9e0ca605457c16c47ed59dcbb2dc6092023fffb95723802e16d DIST auto-multiple-choice_1.3.0_sources.tar.gz 4328255 BLAKE2B 7c6337cfa0a12d8dcd9fa640e636c300234ba7e7a34e95a523c5f9836f934da336f6ce792932fffb97b28ae02c577166a3d4d3ea4fd6959786a5c60510b454a2 SHA512 fcfacd071072f5773556c706b6fa0aea4ff3f3752f3a1f40c9e6de7ec870e939adc57e6bd4c90cac80241cc798e02a71c9fc80d9ccf25ad3a10752f937d06da5 +DIST auto-multiple-choice_1.5.2_sources.tar.gz 7729206 BLAKE2B cc7aec00626028e4cd5a0b774d65bb652e12577040baa70823831f4744fa2bdd018fe751e0b9cf16daeacecf39607554dee4bbf8daf2f18fb958232d95672a5b SHA512 b70932112a30d6af10d4c0c3c3f7b9e89b86111305c0279042da82e030d2de8caad1012eadeb6d0d487305d0ee5c91d056979184665dcd9b44cc9078d6703c87 EBUILD auto-multiple-choice-1.3.0-r1.ebuild 2509 BLAKE2B d4dac8835d7bc1ef817eba331c67663047d148d83c522a7554c48f4086d992c78319dca59ad781d0ec60f59774bf53084de792454818fccfa125cb1bc0a2a361 SHA512 243f2d8b9af8f020d5f25bbe55a5c48a5d87cafb50e103cbc18c9fb42c00ec2f0ec7d19bdffcafa6e3aa76b45486945983622dd8907b5100ad83c2ee2acebacc +EBUILD auto-multiple-choice-1.5.2.ebuild 2390 BLAKE2B 104ca4b4c5d4fb1e7bc151830a679bafe1b651098b43b09fd477a0daa7c22c8a3ec4e3fb643ab51fb1ba4f8567c5dbd9ae673acb68f6508e6bc1d1c433992702 SHA512 8eabc11ada4fc31dd9dc63ba771cffad16634c7d84fef0a9ccf1a9328d42180ea4e48ef0a0d2e3bf1a60ccde7e21583d248bfe2dc7f8c4302d87b526be948202 MISC metadata.xml 262 BLAKE2B 5f01484e6cd16c1234d97ca24813fe4b74cafdc61d6e3c1ae58ead74558909ef052e406aba4abd7440f8dc45ff6548aaf4a863f0eb46c23e1e389ba52e0c1353 SHA512 3d2f08eb53da96ec680d73c3fad400ac4c2081db37d104647fc53008abef2dd78fab180d6295f850469e0c5da2375b083577a9713ae7701c046eaa24c0115ca2 diff --git a/app-office/auto-multiple-choice/auto-multiple-choice-1.5.2.ebuild b/app-office/auto-multiple-choice/auto-multiple-choice-1.5.2.ebuild new file mode 100644 index 000000000000..7cfbd7732a1a --- /dev/null +++ b/app-office/auto-multiple-choice/auto-multiple-choice-1.5.2.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs perl-functions latex-package + +DESCRIPTION="Create and manage multiple choice questionnaries, including automated marking" +HOMEPAGE="http://www.auto-multiple-choice.net/" +SRC_URI="http://download.auto-multiple-choice.net/${PN}_${PV}_sources.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +#KEYWORDS="~amd64 ~x86" # work in progress- dilfridge +IUSE="" + +LANGS="ar es fr ja" +# we deliberately always install de and en, since this way we dont get a problem +# with globs and empty directories... +# +for lala in ${LANGS}; do + IUSE="${IUSE} l10n_${lala}" +done + +COMMON_DEPEND=" + app-text/texlive[cjk,extra,graphics,png,pstricks,science,truetype,xml,X,luatex,xetex,humanities,publishers,l10n_zh] + app-text/poppler:= + dev-perl/XML-LibXML + media-libs/netpbm + media-libs/opencv + l10n_fr? ( app-text/texlive[l10n_fr] ) + l10n_ja? ( app-text/texlive[l10n_ja] ) +" +DEPEND="${COMMON_DEPEND} + app-text/dblatex + app-text/docbook-xml-simple-dtd:* + app-text/docbook-xsl-stylesheets +" +RDEPEND="${COMMON_DEPEND} + app-text/pdftk + dev-lang/perl:= + dev-perl/Glib-Object-Introspection + dev-perl/Gtk3 + media-gfx/imagemagick + dev-perl/XML-Writer + dev-perl/Archive-Zip + dev-perl/DBI + dev-perl/Pango + dev-perl/Text-CSV + dev-perl/DBD-SQLite + dev-perl/Net-CUPS + dev-perl/Email-Address + dev-perl/Email-MIME + dev-perl/Email-Sender +" + +PATCHES=( + "${FILESDIR}/${PN}-1.5.2-conf.patch" +) + +src_prepare() { + default + + local la + for la in ${LANGS} ; do + if ! use l10n_${la} ; then + # remove languages that we dont want to install. no error on nonexisting files. + rm -vf "I18N/lang/${la}.po" + rm -vf "doc/auto-multiple-choice.${la}.in.xml" "doc/doc-xhtml-site.${la}.xsl.in" + rm -rvf "doc/html/auto-multiple-choice.${la}" "doc/modeles/${la}" + sed -e "s: doc/doc-xhtml-site\\.${la}\\.xsl: :g" -i Makefile || die + fi + done +} + +src_compile() { + perl_set_version + export VENDOR_LIB PVR + + export MAKEOPTS="-j1" + # when doing a parallel build, the package is acting decidedly odd + # e.g., the build seems to succeed while actually stuff fails + # and subsequent error messages do not have any relation to the real problem + # So let's keep this also for easier debugging + + emake \ + GCC_NETPBM="-I/usr/include/netpbm/ -lnetpbm" \ + GCC="$(tc-getCC)" \ + GCC_PP="$(tc-getCXX)" +} + +src_install() { + default +} diff --git a/app-office/auto-multiple-choice/files/auto-multiple-choice-1.5.2-conf.patch b/app-office/auto-multiple-choice/files/auto-multiple-choice-1.5.2-conf.patch new file mode 100644 index 000000000000..ff026d64f705 --- /dev/null +++ b/app-office/auto-multiple-choice/files/auto-multiple-choice-1.5.2-conf.patch @@ -0,0 +1,52 @@ +diff -ruN auto-multiple-choice-1.5.2.orig/doc/Makefile auto-multiple-choice-1.5.2/doc/Makefile +--- auto-multiple-choice-1.5.2.orig/doc/Makefile 2021-02-07 23:12:35.000000000 +0100 ++++ auto-multiple-choice-1.5.2/doc/Makefile 2023-06-23 00:05:07.918465419 +0200 +@@ -67,7 +67,7 @@ + %.pdf: export SOURCE_DATE_EPOCH=$(PACKAGE_V_EPOCH) + %.pdf: export SOURCE_DATE_EPOCH_TEX_PRIMITIVES=1 + %.pdf: export FORCE_SOURCE_DATE=1 +-%.pdf: export TEXINPUTS=./img_pdf/: ++%.pdf: export TEXINPUTS=/usr/share/dblatex/latex/style:/usr/share/dblatex/latex/misc:/usr/share/dblatex/latex/graphics:./img_pdf/: + + %.pdf: %.tex $(BLOCK_IMAGES:.svg=.pdf) + set -e ; $(XELATEX) $<; $(XELATEX) $< +diff -ruN auto-multiple-choice-1.5.2.orig/Makefile.conf auto-multiple-choice-1.5.2/Makefile.conf +--- auto-multiple-choice-1.5.2.orig/Makefile.conf 2021-01-29 15:52:23.000000000 +0100 ++++ auto-multiple-choice-1.5.2/Makefile.conf 2023-06-23 00:03:59.662678013 +0200 +@@ -33,13 +33,13 @@ + # directory for executable + BINDIR=/usr/bin + # directory for perl modules +-PERLDIR=/usr/share/perl5 ++PERLDIR=$(VENDOR_LIB) + # directory for some AMC executables, not to be used by end-user + MODSDIR=/usr/lib/AMC + # directory for LaTeX style file +-TEXDIR=/usr/share/texmf/tex/latex/AMC ++TEXDIR=/usr/share/texmf-site/tex/latex/AMC + # directory for LaTeX doc +-TEXDOCDIR=/usr/share/doc/texmf/AMC/ ++TEXDOCDIR=/usr/share/texmf-site/doc/AMC/ + # directory for man (1) files + MAN1DIR=/usr/share/man/man1 + # directory for desktop file +@@ -60,7 +60,7 @@ + # directory for AMC packaged models + MODELSDIR=/usr/share/auto-multiple-choice/models + # directory for documentation (will use html/auto-multiple-choice.* subdirs for HTML docs) +-DOCDIR=/usr/share/doc/auto-multiple-choice ++DOCDIR=/usr/share/doc/$(PVR) + + # directory for Shared MIME-info Database + SHARED_MIMEINFO_DIR=/usr/share/mime/packages +@@ -95,10 +95,3 @@ + + GZIP_REPRODUCIBLE_ARGS=-n + +-# INSTALL USER AND GROUP +- +-ifneq ($(SYSTEM_TYPE),rpm) +-INSTALL_USER=root +-INSTALL_GROUP=root +-endif +- |