parent
3847b20562
commit
2795c321b3
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
|
DIST eselect-1.4.10.tar.xz 177212 BLAKE2B 25f548d56ecfdc5ccf18167ebdeb50cccc77fbdc65ab8683e293242de0083e6036714ae9d173f507da0404dbad0e48f2ac09d542dbdf92d8a5d7e9868b31fa07 SHA512 09e4196959cfb42e0fe4536939ad8e0d1a49d500e3d42634cd959c544f2ed5beaa006100fffaf10eaba121901d36a42721da42504d496de8d157690b7ab7f9fb
|
||||||
DIST eselect-1.4.8.tar.xz 176692 BLAKE2B d24f87ecd7fed1f23a26f9017ecaecaf5b69c02ffbcf9cf7d7b93fa8cad6364d934de8196aff1af955076c167ac4fa8911be03473c757f6a623c63820f3b8255 SHA512 13faa3b21d352975498eb2ea62dfb8d371f30afd6e283c30ff4e89cef035598a8cfe8fafbc6763f39081c547f6743c7f4731d21170625781b89d64eb46c22194
|
DIST eselect-1.4.8.tar.xz 176692 BLAKE2B d24f87ecd7fed1f23a26f9017ecaecaf5b69c02ffbcf9cf7d7b93fa8cad6364d934de8196aff1af955076c167ac4fa8911be03473c757f6a623c63820f3b8255 SHA512 13faa3b21d352975498eb2ea62dfb8d371f30afd6e283c30ff4e89cef035598a8cfe8fafbc6763f39081c547f6743c7f4731d21170625781b89d64eb46c22194
|
||||||
DIST eselect-1.4.9.tar.xz 176776 BLAKE2B 0e30f1d55470c49ee9c93da294cc66dbfb5638a3aa0677665936a5eb6f1d253c38736b4037c8676da526a01c75dec86f09fe37cebae954d41f2ae9b6955a088d SHA512 88e9d81086596849ef6daf87da3f782886286b1b829d0d6378c3c3c7d9f044a2eb2dc4e1596c2f49eb2ee4e443eebaab3be4bdb223a36bb5f7b66ac0686e2640
|
DIST eselect-1.4.9.tar.xz 176776 BLAKE2B 0e30f1d55470c49ee9c93da294cc66dbfb5638a3aa0677665936a5eb6f1d253c38736b4037c8676da526a01c75dec86f09fe37cebae954d41f2ae9b6955a088d SHA512 88e9d81086596849ef6daf87da3f782886286b1b829d0d6378c3c3c7d9f044a2eb2dc4e1596c2f49eb2ee4e443eebaab3be4bdb223a36bb5f7b66ac0686e2640
|
||||||
|
@ -0,0 +1,61 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit bash-completion-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Gentoo's multi-purpose configuration and management tool"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~ulm/eselect/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+ || ( GPL-2+ CC-BY-SA-3.0 )"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE="doc emacs vim-syntax"
|
||||||
|
|
||||||
|
RDEPEND="sys-apps/sed
|
||||||
|
|| (
|
||||||
|
sys-apps/coreutils
|
||||||
|
sys-freebsd/freebsd-bin
|
||||||
|
app-misc/realpath
|
||||||
|
)"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
doc? ( dev-python/docutils )"
|
||||||
|
RDEPEND="${RDEPEND}
|
||||||
|
sys-apps/file
|
||||||
|
sys-libs/ncurses:0"
|
||||||
|
|
||||||
|
PDEPEND="emacs? ( app-emacs/eselect-mode )
|
||||||
|
vim-syntax? ( app-vim/eselect-syntax )"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake
|
||||||
|
use doc && emake html
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
emake DESTDIR="${D}" install
|
||||||
|
newbashcomp misc/${PN}.bashcomp ${PN}
|
||||||
|
dodoc AUTHORS ChangeLog NEWS README TODO doc/*.txt
|
||||||
|
if use doc; then
|
||||||
|
docinto html
|
||||||
|
dodoc *.html doc/*.html doc/*.css
|
||||||
|
fi
|
||||||
|
|
||||||
|
# needed by news module
|
||||||
|
keepdir /var/lib/gentoo/news
|
||||||
|
if ! use prefix; then
|
||||||
|
fowners root:portage /var/lib/gentoo/news
|
||||||
|
fperms g+w /var/lib/gentoo/news
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
# fowners in src_install doesn't work for the portage group:
|
||||||
|
# merging changes the group back to root
|
||||||
|
if ! use prefix; then
|
||||||
|
chgrp portage "${EROOT}/var/lib/gentoo/news" \
|
||||||
|
&& chmod g+w "${EROOT}/var/lib/gentoo/news"
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,44 +1,41 @@
|
|||||||
# Copyright 1999-2013 Gentoo Foundation
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=4
|
EAPI=6
|
||||||
|
|
||||||
EGIT_REPO_URI="git://gitorious.org/os-autoinst/os-autoinst.git"
|
inherit autotools git-r3
|
||||||
|
|
||||||
inherit git-2 autotools eutils
|
|
||||||
|
|
||||||
DESCRIPTION="automated testing of Operating Systems"
|
DESCRIPTION="automated testing of Operating Systems"
|
||||||
HOMEPAGE="http://os-autoinst.org/"
|
HOMEPAGE="http://os-autoinst.org/"
|
||||||
SRC_URI=""
|
EGIT_REPO_URI="https://github.com/os-autoinst/os-autoinst.git"
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
>=media-libs/opencv-2.4
|
media-libs/libogg:=
|
||||||
"
|
media-libs/libsndfile:=
|
||||||
|
media-libs/libtheora:=
|
||||||
|
>=media-libs/opencv-2.4:=
|
||||||
|
sci-libs/fftw:3.0="
|
||||||
RDEPEND="${DEPEND}
|
RDEPEND="${DEPEND}
|
||||||
dev-lang/perl[ithreads]
|
dev-lang/perl[ithreads]
|
||||||
dev-perl/JSON
|
dev-perl/JSON
|
||||||
app-emulation/qemu
|
app-emulation/qemu
|
||||||
app-text/gocr
|
app-text/gocr
|
||||||
media-gfx/imagemagick
|
media-gfx/imagemagick
|
||||||
media-video/ffmpeg2theora
|
media-video/ffmpeg2theora"
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
default
|
||||||
eautoreconf
|
eautoreconf
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
econf \
|
econf --disable-static
|
||||||
--docdir="${EPREFIX}/usr/share/doc/${PF}" \
|
|
||||||
--disable-static
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
default
|
default
|
||||||
prune_libtool_files --all
|
find "${D}" -name '*.la' -delete || die
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
@ -1,21 +1,32 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI=5
|
EAPI=6
|
||||||
|
|
||||||
EGIT_REPO_URI="git://git.code.sf.net/p/linux-ima/ima-evm-utils"
|
inherit autotools git-r3
|
||||||
EGIT_BOOTSTRAP="autogen.sh"
|
|
||||||
|
|
||||||
inherit git-2 eutils
|
|
||||||
|
|
||||||
DESCRIPTION="Supporting tools for IMA and EVM"
|
DESCRIPTION="Supporting tools for IMA and EVM"
|
||||||
HOMEPAGE="http://linux-ima.sourceforge.net"
|
HOMEPAGE="http://linux-ima.sourceforge.net"
|
||||||
SRC_URI=""
|
EGIT_REPO_URI="git://git.code.sf.net/p/linux-ima/ima-evm-utils"
|
||||||
|
|
||||||
DEPEND="sys-apps/keyutils"
|
RDEPEND="
|
||||||
RDEPEND="${DEPEND}"
|
dev-libs/openssl:0=
|
||||||
|
sys-apps/keyutils"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
app-text/docbook-xsl-stylesheets"
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
IUSE="debug"
|
||||||
IUSE=""
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
sed -i '/^MANPAGE_DOCBOOK_XSL/s:/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl:/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl:' Makefile.am || die
|
||||||
|
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf $(use_enable debug)
|
||||||
|
}
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,6 +1,2 @@
|
|||||||
DIST sublime-text-2.0.2_x32.tar.bz2 5584673 BLAKE2B b2dcdbc7681b8e7d8d003c2a69806dec7026f1fd1b9185c3c2c64f4cca94d83cbb5cf51f829cf6a284caabd4c1e6d30a4ab1b72b9ed98887792266ba2b33eec7 SHA512 08d99183a102b376109a140f2c58cac2ecd49179e639a80da9860ae03a223229df217c9316b7571b10b59983ad49d8145b86c6e20175f3cd87021aca1d7527bc
|
|
||||||
DIST sublime-text-2.0.2_x64.tar.bz2 5662968 BLAKE2B 1f1a1c1cc1b14fff27c01654ae6f7c0a4984be1b0448dfe832422b3ae6e13f457fdfe4d0dfd1f8a20b8ff89c9abada84033ae39baadc2b6c109c889536a4b66e SHA512 330dc9c4141d0e01f19605b397126b9ca0703377d565cbc552f4bc622ba54b38dbf2485aca71d6f24e3160e71ea40b2057ce66a3907ff6766916fb39438e9113
|
|
||||||
DIST sublime_text_3_build_3126_x32.tar.bz2 9258647 BLAKE2B a651dcba881353a42dd92d2ac7ed27eff194873488a4e19e4b4fb42c63c4516db23df4ef7cd77492f7345d143e5d05f4338323a8fb57366015bbab641b72f054 SHA512 f8377adbad072577995918c7c8311ae63c7290581b00200e698ded18722893edf0baa7227480c8fc6143be30d695fae1e7312f7a9ac6728b8a397ea814a829fa
|
|
||||||
DIST sublime_text_3_build_3126_x64.tar.bz2 9313954 BLAKE2B 060d3825e99dec24903ab5fb9053d834d415427bddc9150992a5b5303827d86c12b67a606da5f56f42a636e4688695922c111928ef046cc1867a69ed87e4f48c SHA512 a0a683b3cef45fba2a294cb044e5dc24ed3ea8d8a669321ee15844a48b88fbd345d50f499a9feb865735b15b44ff99d6b5f8aaee453245b9fd61e9e3d1c69f26
|
|
||||||
DIST sublime_text_3_build_3143_x32.tar.bz2 9847438 BLAKE2B bca62736e3dbaae5aa5318af5aca4c78c5abff1189a58b354205351f21ba1caa8a6b479e9a7e01fdb4a56dec68d50e0e43522918b461463cdada7e6dbda6441c SHA512 471716815a171f786ad5f12b743ec3c17dcde2fc165522e523d338c9184af7789095e2de41e89d0c4b0dc58bfe409f116662016e7014c528650ce074c101084b
|
DIST sublime_text_3_build_3143_x32.tar.bz2 9847438 BLAKE2B bca62736e3dbaae5aa5318af5aca4c78c5abff1189a58b354205351f21ba1caa8a6b479e9a7e01fdb4a56dec68d50e0e43522918b461463cdada7e6dbda6441c SHA512 471716815a171f786ad5f12b743ec3c17dcde2fc165522e523d338c9184af7789095e2de41e89d0c4b0dc58bfe409f116662016e7014c528650ce074c101084b
|
||||||
DIST sublime_text_3_build_3143_x64.tar.bz2 9857381 BLAKE2B bf69810574eda5bb3afaa82dcbf8b68f9bef1db19af2382e0ee4b93cb87f08caa3f7bdc754419284b3902e0e715a97d211adcd234f35d8038071818368b3fb54 SHA512 db6375cbcaf1cb6e1d583aa043abeaeecf0236e1d2e23b965b6c2dd616ec2277d73786d2a9c273329c1a94890edc7ddce1551292b5170dc5b558cd7246c5093f
|
DIST sublime_text_3_build_3143_x64.tar.bz2 9857381 BLAKE2B bf69810574eda5bb3afaa82dcbf8b68f9bef1db19af2382e0ee4b93cb87f08caa3f7bdc754419284b3902e0e715a97d211adcd234f35d8038071818368b3fb54 SHA512 db6375cbcaf1cb6e1d583aa043abeaeecf0236e1d2e23b965b6c2dd616ec2277d73786d2a9c273329c1a94890edc7ddce1551292b5170dc5b558cd7246c5093f
|
||||||
|
@ -1,62 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit eutils gnome2-utils
|
|
||||||
|
|
||||||
# get the major version from PV
|
|
||||||
MV=${PV:0:1}
|
|
||||||
|
|
||||||
DESCRIPTION="Sophisticated text editor for code, markup and prose"
|
|
||||||
HOMEPAGE="http://www.sublimetext.com"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( https://download.sublimetext.com/Sublime%20Text%20${PV}%20x64.tar.bz2 -> ${P}_x64.tar.bz2 )
|
|
||||||
x86? ( https://download.sublimetext.com/Sublime%20Text%20${PV}.tar.bz2 -> ${P}_x32.tar.bz2 )"
|
|
||||||
|
|
||||||
LICENSE="Sublime"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="dbus"
|
|
||||||
RESTRICT="bindist mirror strip"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/gtk+:2
|
|
||||||
x11-libs/libX11
|
|
||||||
dbus? ( sys-apps/dbus )"
|
|
||||||
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
S="${WORKDIR}/Sublime Text ${MV}"
|
|
||||||
|
|
||||||
# Sublime bundles the kitchen sink, which includes python and other assorted
|
|
||||||
# modules. Do not try to unbundle these because you are guaranteed to fail.
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /opt/${PN}${MV}
|
|
||||||
doins -r "Pristine Packages" lib
|
|
||||||
doins sublime_plugin.py PackageSetup.py
|
|
||||||
|
|
||||||
exeinto /opt/${PN}${MV}
|
|
||||||
doexe sublime_text
|
|
||||||
dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/subl
|
|
||||||
|
|
||||||
local size
|
|
||||||
for size in 16 32 48 128 256; do
|
|
||||||
newicon -s ${size} Icon/${size}x${size}/sublime_text.png subl.png
|
|
||||||
done
|
|
||||||
|
|
||||||
make_desktop_entry "subl" "Sublime Text ${MV}" "subl" \
|
|
||||||
"TextEditor;IDE;Development" "StartupNotify=true"
|
|
||||||
|
|
||||||
# needed to get WM_CLASS lookup right
|
|
||||||
mv "${ED%/}"/usr/share/applications/subl{-sublime-text,}.desktop || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
@ -1,64 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit eutils gnome2-utils
|
|
||||||
|
|
||||||
# get the major version from PV
|
|
||||||
MV=${PV:0:1}
|
|
||||||
MY_PV=${PV#*_pre}
|
|
||||||
|
|
||||||
DESCRIPTION="Sophisticated text editor for code, markup and prose"
|
|
||||||
HOMEPAGE="http://www.sublimetext.com"
|
|
||||||
SRC_URI="
|
|
||||||
amd64? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x64.tar.bz2 )
|
|
||||||
x86? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x32.tar.bz2 )"
|
|
||||||
|
|
||||||
LICENSE="Sublime"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
IUSE="dbus"
|
|
||||||
RESTRICT="bindist mirror strip"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
dev-libs/glib:2
|
|
||||||
x11-libs/gtk+:2
|
|
||||||
x11-libs/libX11
|
|
||||||
dbus? ( sys-apps/dbus )"
|
|
||||||
|
|
||||||
QA_PREBUILT="*"
|
|
||||||
S="${WORKDIR}/sublime_text_${MV}"
|
|
||||||
|
|
||||||
# Sublime bundles the kitchen sink, which includes python and other assorted
|
|
||||||
# modules. Do not try to unbundle these because you are guaranteed to fail.
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
insinto /opt/${PN}${MV}
|
|
||||||
doins -r Packages Icon
|
|
||||||
doins changelog.txt sublime_plugin.py sublime.py python3.3.zip
|
|
||||||
|
|
||||||
exeinto /opt/${PN}${MV}
|
|
||||||
doexe crash_reporter plugin_host sublime_text
|
|
||||||
dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/subl
|
|
||||||
|
|
||||||
local size
|
|
||||||
for size in 32 48 128 256; do
|
|
||||||
dosym ../../../../../../opt/${PN}${MV}/Icon/${size}x${size}/sublime-text.png \
|
|
||||||
/usr/share/icons/hicolor/${size}x${size}/apps/subl.png
|
|
||||||
done
|
|
||||||
|
|
||||||
make_desktop_entry "subl" "Sublime Text ${MV}" "subl" \
|
|
||||||
"TextEditor;IDE;Development" "StartupNotify=true"
|
|
||||||
|
|
||||||
# needed to get WM_CLASS lookup right
|
|
||||||
mv "${ED%/}"/usr/share/applications/subl{-sublime-text,}.desktop || die
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
gnome2_icon_cache_update
|
|
||||||
}
|
|
Binary file not shown.
@ -1,3 +1,3 @@
|
|||||||
DIST ebuild-mode-1.37.tar.xz 30816 BLAKE2B f93d1513ec3f2eab4fc4dda4d46aeedaba7f2ffecf20e6f90426c84e979fe72120719b13182ca407576effcf62f839ebc9c2f94d5f9e9d8230b449dd74a58dcb SHA512 1d570b213ad0c6eef8817f69c99c0862703b9bddc24477234dde542b697ba372a06bbe8e4a91179a7d528b720a7dbfc13bb92c8ea0a4d3b3b8684fa4ee0065c0
|
|
||||||
DIST ebuild-mode-1.38.tar.xz 30744 BLAKE2B a147fbb462f0e1a2ba3272c74b12c9357200b0ca6671d75263547d7b777489772504c9fda634a797fecff8dce35e40b7bb579cdbd9a7da99f68f74b08a48a4da SHA512 bfcc4fb100f7d9299e9b466c7661e865f9b93ee352780da1647f1a98159fe3e9eeb8cd4b7d1d9906d532316d1256ec7b6f821cac3d064cda15f2fd62ca7cb349
|
DIST ebuild-mode-1.38.tar.xz 30744 BLAKE2B a147fbb462f0e1a2ba3272c74b12c9357200b0ca6671d75263547d7b777489772504c9fda634a797fecff8dce35e40b7bb579cdbd9a7da99f68f74b08a48a4da SHA512 bfcc4fb100f7d9299e9b466c7661e865f9b93ee352780da1647f1a98159fe3e9eeb8cd4b7d1d9906d532316d1256ec7b6f821cac3d064cda15f2fd62ca7cb349
|
||||||
DIST ebuild-mode-1.40.tar.xz 34676 BLAKE2B bf34c773966540f67c74fe72a8c47073f9385ba210ceecaf8fa8977a67f5945314090c0555b2b12dcee8486ed495dda062d6d36bcaff3a291f3d4ba5ca6886fa SHA512 50caa3255ff874e779f8dcb34b84845fd3b03edee35fc20df8aa3606dc2a00a4a0e88fab79f7872cfe3e92f04263ce74e60f3aeb1d97a2706116414ac9b352d5
|
DIST ebuild-mode-1.40.tar.xz 34676 BLAKE2B bf34c773966540f67c74fe72a8c47073f9385ba210ceecaf8fa8977a67f5945314090c0555b2b12dcee8486ed495dda062d6d36bcaff3a291f3d4ba5ca6886fa SHA512 50caa3255ff874e779f8dcb34b84845fd3b03edee35fc20df8aa3606dc2a00a4a0e88fab79f7872cfe3e92f04263ce74e60f3aeb1d97a2706116414ac9b352d5
|
||||||
|
DIST ebuild-mode-1.41.tar.xz 34728 BLAKE2B c3863a249536c7df1ee4463879fb29a3b7243eee7192319ffeff527f40527891e02e9dec69601a1783a7ed28fa098b102b224eb5cdd5e9c95dcca37d48acc4a2 SHA512 8c85b8c5197162c936cbb4d8d204eb10e4f20d413b021c4b4d7b18793cef192063ea74441efa6ac69ec91e2297344027a0ea714537898cfa41ad8fd5a1262bce
|
||||||
|
@ -1 +1,2 @@
|
|||||||
|
DIST eselect-1.4.10.tar.xz 177212 BLAKE2B 25f548d56ecfdc5ccf18167ebdeb50cccc77fbdc65ab8683e293242de0083e6036714ae9d173f507da0404dbad0e48f2ac09d542dbdf92d8a5d7e9868b31fa07 SHA512 09e4196959cfb42e0fe4536939ad8e0d1a49d500e3d42634cd959c544f2ed5beaa006100fffaf10eaba121901d36a42721da42504d496de8d157690b7ab7f9fb
|
||||||
DIST eselect-1.4.4.tar.xz 177536 BLAKE2B 9991d69a0589be0a7df881fe5d6c0021c99fd7fd5b561ad7a9423edc46b25528b499a3e839dfe974d5d53e8e8a5b3a798cd7f5f1eeb78e531fff16680babce96 SHA512 1ed01cf00e3f13aad3e5f844c7086c3dd48398efd76e68cd91cf13b9939f4b48eef8915c5f3926954d158023115ad66ee67c0bc8fc4c9570900a37207674fc8f
|
DIST eselect-1.4.4.tar.xz 177536 BLAKE2B 9991d69a0589be0a7df881fe5d6c0021c99fd7fd5b561ad7a9423edc46b25528b499a3e839dfe974d5d53e8e8a5b3a798cd7f5f1eeb78e531fff16680babce96 SHA512 1ed01cf00e3f13aad3e5f844c7086c3dd48398efd76e68cd91cf13b9939f4b48eef8915c5f3926954d158023115ad66ee67c0bc8fc4c9570900a37207674fc8f
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit elisp
|
||||||
|
|
||||||
|
MY_P="eselect-${PV}"
|
||||||
|
DESCRIPTION="Emacs major mode for editing eselect files"
|
||||||
|
HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Eselect"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~ulm/eselect/${MY_P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}/misc"
|
||||||
|
SITEFILE="50${PN}-gentoo.el"
|
@ -0,0 +1,12 @@
|
|||||||
|
(add-to-list 'load-path "@SITELISP@")
|
||||||
|
|
||||||
|
(autoload 'ruby-mode "ruby-mode" "Major mode to edit ruby files." t)
|
||||||
|
|
||||||
|
(add-to-list 'auto-mode-alist '("Rakefile\\'" . ruby-mode))
|
||||||
|
(add-to-list 'auto-mode-alist '("\\.\\(rake\\|rb\\)\\'" . ruby-mode))
|
||||||
|
(add-to-list 'interpreter-mode-alist '("ruby" . ruby-mode))
|
||||||
|
|
||||||
|
(autoload 'run-ruby "inf-ruby" "Run an inferior Ruby process" t)
|
||||||
|
(autoload 'inf-ruby-keys "inf-ruby" "Set local key defs for inf-ruby in ruby-mode")
|
||||||
|
|
||||||
|
(add-hook 'ruby-mode-hook 'inf-ruby-keys)
|
@ -0,0 +1,18 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit elisp
|
||||||
|
|
||||||
|
DESCRIPTION="Emacs major mode for editing Ruby code"
|
||||||
|
HOMEPAGE="https://www.ruby-lang.org/"
|
||||||
|
SRC_URI="mirror://ruby/ruby-${PV}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3+"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||||||
|
|
||||||
|
S="${WORKDIR}/ruby-${PV}/misc"
|
||||||
|
DOCS="README"
|
||||||
|
SITEFILE="50${PN}-gentoo-${PV}.el"
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST ruby.eselect-20161226.xz 1900 BLAKE2B 698f004e548924ca7c58dfceccc3d21029d6460d21dd67e4466e3a8c4bfdc3a7976c51754ba376c5acbbec7c1146368b532f1cda079f8b5f6f86b7b08c700214 SHA512 69cf17e42d9908fdfc9b08a3ca2c1f406a5968fc1c22663cc4b2388ad29d3bdb8aec4f0210ce9d5c118514aea81a4465a299347dd702f859ba8660fcb3882f17
|
DIST ruby.eselect-20161226.xz 1900 BLAKE2B 698f004e548924ca7c58dfceccc3d21029d6460d21dd67e4466e3a8c4bfdc3a7976c51754ba376c5acbbec7c1146368b532f1cda079f8b5f6f86b7b08c700214 SHA512 69cf17e42d9908fdfc9b08a3ca2c1f406a5968fc1c22663cc4b2388ad29d3bdb8aec4f0210ce9d5c118514aea81a4465a299347dd702f859ba8660fcb3882f17
|
||||||
DIST ruby.eselect-20170723.xz 1972 BLAKE2B 338f9fbb81ebe3c0fdcab77ab12cabd6aa334ac3bf64352cd801c8088d7c3ac4c452e647addc98497d104df24f7934d8cdd8b0008e4f52fb27306a80411f793b SHA512 9c0614bc7e2ce9811466f257035d74622a96db8d44aa0908414fbac7d4142c34350257b08ace7371901e46cc0c9a38c3f2acae3caea4fb354ccc37b8c919b48f
|
DIST ruby.eselect-20170723.xz 1972 BLAKE2B 338f9fbb81ebe3c0fdcab77ab12cabd6aa334ac3bf64352cd801c8088d7c3ac4c452e647addc98497d104df24f7934d8cdd8b0008e4f52fb27306a80411f793b SHA512 9c0614bc7e2ce9811466f257035d74622a96db8d44aa0908414fbac7d4142c34350257b08ace7371901e46cc0c9a38c3f2acae3caea4fb354ccc37b8c919b48f
|
||||||
|
DIST ruby.eselect-20171225.xz 1972 BLAKE2B 919a5d3847fd38dd86352623dca38523a323b0450f3fb2f04c5fb426e905431a6ef2e221c7221b67b9c4a989253ef2cda70a1dd2df710eb9331234bcefcc0dd6 SHA512 3398de77c5a836119f52980d26702c891af1bc7f83596829591d268cb252843242c2e00c42e10cfe3468a4b92e47e6d551108d21d1e322edda7e4756a1b5ad86
|
||||||
|
@ -0,0 +1,22 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="Manages multiple Ruby versions"
|
||||||
|
HOMEPAGE="https://www.gentoo.org"
|
||||||
|
SRC_URI="https://dev.gentoo.org/~graaff/ruby-team/ruby.eselect-${PVR}.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
RDEPEND=">=app-admin/eselect-1.0.2"
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/eselect/modules
|
||||||
|
newins "${WORKDIR}/ruby.eselect-${PVR}" ruby.eselect || die
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,32 +0,0 @@
|
|||||||
# Copyright 1999-2011 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="3"
|
|
||||||
|
|
||||||
inherit eutils toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="An ISO 3166 country code finder"
|
|
||||||
HOMEPAGE="http://www.grigna.com/diego/linux/countrycodes/"
|
|
||||||
SRC_URI="http://www.grigna.com/diego/linux/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="alpha amd64 ~ia64 ~mips ppc ppc64 sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${P}/src
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
epatch "${FILESDIR}"/${PV}-Makefile.patch
|
|
||||||
tc-export CC
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake \
|
|
||||||
prefix="${D}/usr" \
|
|
||||||
mandir="${D}/usr/share/man/man1" install || die "make install failed"
|
|
||||||
dosym iso3166 /usr/bin/countrycodes || die
|
|
||||||
dosym iso3166.1 /usr/share/man/man1/countrycodes || die
|
|
||||||
dodoc ../doc/{Changelog,README} || die
|
|
||||||
prepman
|
|
||||||
}
|
|
@ -1,34 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="An ISO 3166 country code finder"
|
|
||||||
HOMEPAGE="http://www.grigna.com/diego/linux/countrycodes/"
|
|
||||||
SRC_URI="http://www.grigna.com/diego/linux/${PN}/${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
S="${WORKDIR}"/${P}/src
|
|
||||||
|
|
||||||
PATCHES=( "${FILESDIR}"/${PV}-Makefile.patch )
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
default
|
|
||||||
tc-export CC
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
emake \
|
|
||||||
prefix="${D}/usr" \
|
|
||||||
mandir="${D}/usr/share/man/man1" install
|
|
||||||
dosym iso3166 /usr/bin/countrycodes
|
|
||||||
dosym iso3166.1 /usr/share/man/man1/countrycodes
|
|
||||||
dodoc ../doc/{Changelog,README}
|
|
||||||
prepman
|
|
||||||
}
|
|
Binary file not shown.
@ -1,185 +0,0 @@
|
|||||||
# Copyright 1999-2017 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit eutils fdo-mime gnome2-utils pax-utils prefix rpm multilib
|
|
||||||
|
|
||||||
IUSE="gnome java"
|
|
||||||
|
|
||||||
BUILDID="9783"
|
|
||||||
BVER="${PV/_rc*/}-${BUILDID}"
|
|
||||||
BVER2=4.1.3-${BUILDID}
|
|
||||||
BASIS="ooobasis4.1"
|
|
||||||
BASIS2="basis4.1"
|
|
||||||
NM="openoffice"
|
|
||||||
NM1="${NM}-brand"
|
|
||||||
NM2="${NM}4"
|
|
||||||
NM3="${NM2}.1.3"
|
|
||||||
FILEPATH="mirror://sourceforge/openofficeorg.mirror"
|
|
||||||
if [ "${ARCH}" = "amd64" ] ; then
|
|
||||||
XARCH="x86_64"
|
|
||||||
else
|
|
||||||
XARCH="i586"
|
|
||||||
fi
|
|
||||||
UP="en-US/RPMS"
|
|
||||||
|
|
||||||
DESCRIPTION="Apache OpenOffice productivity suite"
|
|
||||||
HOMEPAGE="https://www.openoffice.org/"
|
|
||||||
SRC_URI="amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_install-rpm_en-US.tar.gz )
|
|
||||||
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_install-rpm_en-US.tar.gz )"
|
|
||||||
|
|
||||||
# TODO: supports ca_XR (Valencian RACV) locale too
|
|
||||||
LANGS="ast eu bg ca ca_XV zh_CN zh_TW cs da nl en_GB fi fr gd gl de el he hi hu it ja km ko lt nb pl pt_BR pt ru sr sk sl es sv ta th tr vi"
|
|
||||||
|
|
||||||
for X in ${LANGS} ; do
|
|
||||||
[[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? (
|
|
||||||
amd64? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86-64_langpack-rpm_${X/_/-}.tar.gz )
|
|
||||||
x86? ( "${FILEPATH}"/Apache_OpenOffice_${PV}_Linux_x86_langpack-rpm_${X/_/-}.tar.gz ) )"
|
|
||||||
IUSE="${IUSE} linguas_${X}"
|
|
||||||
done
|
|
||||||
|
|
||||||
LICENSE="Apache-2.0"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
|
|
||||||
|
|
||||||
RDEPEND="
|
|
||||||
!app-office/openoffice
|
|
||||||
!prefix? ( sys-libs/glibc )
|
|
||||||
app-arch/unzip
|
|
||||||
app-arch/zip
|
|
||||||
>=dev-lang/perl-5.0
|
|
||||||
dev-lang/python:2.7
|
|
||||||
>=media-libs/freetype-2.1.10-r2
|
|
||||||
sys-libs/ncurses:5/5
|
|
||||||
x11-libs/libXaw
|
|
||||||
x11-libs/libXinerama"
|
|
||||||
|
|
||||||
DEPEND="${RDEPEND}
|
|
||||||
sys-apps/findutils"
|
|
||||||
|
|
||||||
PDEPEND="java? ( >=virtual/jre-1.5 )"
|
|
||||||
|
|
||||||
RESTRICT="strip"
|
|
||||||
|
|
||||||
QA_PREBUILT="usr/$(get_libdir)/${NM}/program/*"
|
|
||||||
QA_TEXTRELS="usr/$(get_libdir)/${NM}/program/libvclplug_genli.so"
|
|
||||||
|
|
||||||
S=${WORKDIR}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
|
|
||||||
unpack ${A}
|
|
||||||
|
|
||||||
cp "${FILESDIR}"/{50-${PN},wrapper.in} "${T}"
|
|
||||||
eprefixify "${T}"/{50-${PN},wrapper.in}
|
|
||||||
|
|
||||||
for i in base calc core01 core02 core03 core04 core05 core06 core07 draw graphicfilter images impress math ogltrans ooofonts ooolinguistic pyuno ure writer xsltfilter ; do
|
|
||||||
rpm_unpack "./${UP}/${NM}-${i}-${BVER}.${XARCH}.rpm"
|
|
||||||
done
|
|
||||||
|
|
||||||
rpm_unpack "./${UP}/${NM}-${BVER}.${XARCH}.rpm"
|
|
||||||
|
|
||||||
for j in base calc draw impress math writer; do
|
|
||||||
rpm_unpack "./${UP}/${NM1}-${j}-${BVER}.${XARCH}.rpm"
|
|
||||||
done
|
|
||||||
|
|
||||||
rpm_unpack "./${UP}/desktop-integration/${NM3}-freedesktop-menus-${BVER2}.noarch.rpm"
|
|
||||||
|
|
||||||
use gnome && rpm_unpack "./${UP}/${NM}-gnome-integration-${BVER}.${XARCH}.rpm"
|
|
||||||
use java && rpm_unpack "./${UP}/${NM}-javafilter-${BVER}.${XARCH}.rpm"
|
|
||||||
|
|
||||||
# English support installed by default
|
|
||||||
rpm_unpack "./${UP}/${NM}-en-US-${BVER}.${XARCH}.rpm"
|
|
||||||
rpm_unpack "./${UP}/${NM1}-en-US-${BVER}.${XARCH}.rpm"
|
|
||||||
for s in base calc draw help impress math res writer ; do
|
|
||||||
rpm_unpack "./${UP}/${NM}-en-US-${s}-${BVER}.${XARCH}.rpm"
|
|
||||||
done
|
|
||||||
|
|
||||||
# Localization
|
|
||||||
strip-linguas ${LANGS}
|
|
||||||
for l in ${LINGUAS}; do
|
|
||||||
m="${l/_/-}"
|
|
||||||
if [[ ${m} != "en" ]] ; then
|
|
||||||
LANGDIR="${m}/RPMS/"
|
|
||||||
rpm_unpack "./${LANGDIR}/${NM}-${m}-${BVER}.${XARCH}.rpm"
|
|
||||||
rpm_unpack "./${LANGDIR}/${NM1}-${m}-${BVER}.${XARCH}.rpm"
|
|
||||||
for n in base calc draw help impress math res writer; do
|
|
||||||
rpm_unpack "./${LANGDIR}/${NM}-${m}-${n}-${BVER}.${XARCH}.rpm"
|
|
||||||
done
|
|
||||||
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install () {
|
|
||||||
|
|
||||||
INSTDIR="/usr/$(get_libdir)/${NM}"
|
|
||||||
dodir ${INSTDIR}
|
|
||||||
# mv "${WORKDIR}"/opt/${NM}/* "${ED}${INSTDIR}" || die
|
|
||||||
mv "${WORKDIR}"/opt/${NM2}/* "${ED}${INSTDIR}" || die
|
|
||||||
|
|
||||||
#Menu entries, icons and mime-types
|
|
||||||
cd "${ED}${INSTDIR}/share/xdg/"
|
|
||||||
for desk in base calc draw impress javafilter math printeradmin qstart startcenter writer; do
|
|
||||||
if [ "${desk}" = "javafilter" ] ; then
|
|
||||||
use java || { rm javafilter.desktop; continue; }
|
|
||||||
fi
|
|
||||||
mv ${desk}.desktop ${NM}-${desk}.desktop
|
|
||||||
sed -i -e "s/${NM2} /ooffice /g" ${NM}-${desk}.desktop || die
|
|
||||||
domenu ${NM}-${desk}.desktop
|
|
||||||
done
|
|
||||||
insinto /usr/share
|
|
||||||
doins -r "${WORKDIR}"/usr/share/icons
|
|
||||||
doins -r "${WORKDIR}"/usr/share/mime
|
|
||||||
|
|
||||||
# Make sure the permissions are right
|
|
||||||
use prefix || fowners -R root:0 /
|
|
||||||
|
|
||||||
# Install wrapper script
|
|
||||||
newbin "${T}/wrapper.in" ooffice
|
|
||||||
sed -i -e s/LIBDIR/$(get_libdir)/g "${ED}/usr/bin/ooffice" || die
|
|
||||||
|
|
||||||
# Component symlinks
|
|
||||||
for app in base calc draw impress math writer; do
|
|
||||||
cp "${ED}/usr/bin/ooffice" "${ED}/usr/bin/oo${app}"
|
|
||||||
sed -i -e s/soffice/s${app}/ "${ED}/usr/bin/oo${app}" || die
|
|
||||||
done
|
|
||||||
|
|
||||||
dosym ${INSTDIR}/program/spadmin /usr/bin/ooffice-printeradmin
|
|
||||||
dosym ${INSTDIR}/program/soffice /usr/bin/soffice
|
|
||||||
|
|
||||||
# Non-java weirdness see bug #99366
|
|
||||||
use !java && rm -f "${ED}${INSTDIR}/program/javaldx"
|
|
||||||
|
|
||||||
# prevent revdep-rebuild from attempting to rebuild all the time
|
|
||||||
insinto /etc/revdep-rebuild && doins "${T}/50-${PN}"
|
|
||||||
|
|
||||||
# remove soffice bin to avoid collision with libreoffice
|
|
||||||
rm -rf "${ED}${EPREFIX}/usr/bin/soffice"
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
|
|
||||||
use gnome && gnome2_icon_savelist
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
|
|
||||||
fdo-mime_desktop_database_update
|
|
||||||
fdo-mime_mime_database_update
|
|
||||||
use gnome && gnome2_icon_cache_update
|
|
||||||
|
|
||||||
pax-mark -m "${EPREFIX}"/usr/$(get_libdir)/${NM}/program/soffice.bin
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postrm() {
|
|
||||||
|
|
||||||
fdo-mime_desktop_database_update
|
|
||||||
use gnome && gnome2_icon_cache_update
|
|
||||||
|
|
||||||
}
|
|
@ -0,0 +1,534 @@
|
|||||||
|
From 61186c7ef083046b7e0c908952e8a773e2787d82 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jean Ghali <jghali@libertysurf.fr>
|
||||||
|
Date: Fri, 8 Sep 2017 16:52:10 +0000
|
||||||
|
Subject: [PATCH] #14979: poppler-0.58 breaks build
|
||||||
|
|
||||||
|
git-svn-id: svn://scribus.net/trunk/Scribus@22154 11d20701-8431-0410-a711-e3c959e3b870
|
||||||
|
---
|
||||||
|
scribus/plugins/import/pdf/importpdf.cpp | 95 +++++++++++++++--
|
||||||
|
scribus/plugins/import/pdf/slaoutput.cpp | 174 ++++++++++++++++++++++++++++++-
|
||||||
|
2 files changed, 258 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/scribus/plugins/import/pdf/importpdf.cpp b/scribus/plugins/import/pdf/importpdf.cpp
|
||||||
|
index 4c462beadd..1c0bd8a888 100644
|
||||||
|
--- a/scribus/plugins/import/pdf/importpdf.cpp
|
||||||
|
+++ b/scribus/plugins/import/pdf/importpdf.cpp
|
||||||
|
@@ -22,6 +22,7 @@ for which a new license (GPL+exception) is in place.
|
||||||
|
#include <poppler/PageTransition.h>
|
||||||
|
#include <poppler/ViewerPreferences.h>
|
||||||
|
#include <poppler/poppler-config.h>
|
||||||
|
+#include <poppler/cpp/poppler-version.h>
|
||||||
|
#include <poppler/SplashOutputDev.h>
|
||||||
|
#include <poppler/splash/SplashBitmap.h>
|
||||||
|
|
||||||
|
@@ -59,6 +60,12 @@ for which a new license (GPL+exception) is in place.
|
||||||
|
#include "ui/multiprogressdialog.h"
|
||||||
|
#include "ui/propertiespalette.h"
|
||||||
|
|
||||||
|
+#define POPPLER_VERSION_ENCODE(major, minor, micro) ( \
|
||||||
|
+ ((major) * 10000) \
|
||||||
|
+ + ((minor) * 100) \
|
||||||
|
+ + ((micro) * 1))
|
||||||
|
+#define POPPLER_ENCODED_VERSION POPPLER_VERSION_ENCODE(POPPLER_VERSION_MAJOR, POPPLER_VERSION_MINOR, POPPLER_VERSION_MICRO)
|
||||||
|
+
|
||||||
|
PdfPlug::PdfPlug(ScribusDoc* doc, int flags)
|
||||||
|
{
|
||||||
|
tmpSele = new Selection(this, false);
|
||||||
|
@@ -507,12 +514,20 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < order->getLength (); ++i)
|
||||||
|
{
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object orderItem = order->get(i);
|
||||||
|
+#else
|
||||||
|
Object orderItem;
|
||||||
|
order->get(i, &orderItem);
|
||||||
|
+#endif
|
||||||
|
if (orderItem.isDict())
|
||||||
|
{
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object ref = order->getNF(i);
|
||||||
|
+#else
|
||||||
|
Object ref;
|
||||||
|
order->getNF(i, &ref);
|
||||||
|
+#endif
|
||||||
|
if (ref.isRef())
|
||||||
|
{
|
||||||
|
OptionalContentGroup *oc = ocg->findOcgByRef(ref.getRef());
|
||||||
|
@@ -523,7 +538,9 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
ocgNames.append(ocgName);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+#if POPPLER_ENCODED_VERSION < POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
ref.free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
@@ -597,39 +614,71 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
dev->layersSetByOCG = true;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
+
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object info = pdfDoc->getDocInfo();
|
||||||
|
+ if (info.isDict())
|
||||||
|
+ {
|
||||||
|
+ Object obj;
|
||||||
|
+ Dict *infoDict = info.getDict();
|
||||||
|
+ obj = infoDict->lookup((char*) "Title");
|
||||||
|
+ if (obj.isString())
|
||||||
|
+ {
|
||||||
|
+ m_Doc->documentInfo().setTitle(UnicodeParsedString(obj.getString()));
|
||||||
|
+ }
|
||||||
|
+ obj = infoDict->lookup((char*) "Author");
|
||||||
|
+ if (obj.isString())
|
||||||
|
+ {
|
||||||
|
+ m_Doc->documentInfo().setAuthor(UnicodeParsedString(obj.getString()));
|
||||||
|
+ }
|
||||||
|
+ obj = infoDict->lookup((char*) "Subject");
|
||||||
|
+ if (obj.isString())
|
||||||
|
+ {
|
||||||
|
+ m_Doc->documentInfo().setSubject(UnicodeParsedString(obj.getString()));
|
||||||
|
+ }
|
||||||
|
+ obj = infoDict->lookup((char*) "Keywords");
|
||||||
|
+ if (obj.isString())
|
||||||
|
+ {
|
||||||
|
+ // s1 = obj.getString();
|
||||||
|
+ m_Doc->documentInfo().setKeywords(UnicodeParsedString(obj.getString()));
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ info = Object();
|
||||||
|
+#else
|
||||||
|
Object info;
|
||||||
|
pdfDoc->getDocInfo(&info);
|
||||||
|
if (info.isDict())
|
||||||
|
{
|
||||||
|
Object obj;
|
||||||
|
- // GooString *s1;
|
||||||
|
+ // GooString *s1;
|
||||||
|
Dict *infoDict = info.getDict();
|
||||||
|
- if (infoDict->lookup((char*)"Title", &obj )->isString())
|
||||||
|
+ if (infoDict->lookup((char*)"Title", &obj)->isString())
|
||||||
|
{
|
||||||
|
- // s1 = obj.getString();
|
||||||
|
+ // s1 = obj.getString();
|
||||||
|
m_Doc->documentInfo().setTitle(UnicodeParsedString(obj.getString()));
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
- if (infoDict->lookup((char*)"Author", &obj )->isString())
|
||||||
|
+ if (infoDict->lookup((char*)"Author", &obj)->isString())
|
||||||
|
{
|
||||||
|
- // s1 = obj.getString();
|
||||||
|
+ // s1 = obj.getString();
|
||||||
|
m_Doc->documentInfo().setAuthor(UnicodeParsedString(obj.getString()));
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
- if (infoDict->lookup((char*)"Subject", &obj )->isString())
|
||||||
|
+ if (infoDict->lookup((char*)"Subject", &obj)->isString())
|
||||||
|
{
|
||||||
|
- // s1 = obj.getString();
|
||||||
|
+ // s1 = obj.getString();
|
||||||
|
m_Doc->documentInfo().setSubject(UnicodeParsedString(obj.getString()));
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
- if (infoDict->lookup((char*)"Keywords", &obj )->isString())
|
||||||
|
+ if (infoDict->lookup((char*)"Keywords", &obj)->isString())
|
||||||
|
{
|
||||||
|
- // s1 = obj.getString();
|
||||||
|
+ // s1 = obj.getString();
|
||||||
|
m_Doc->documentInfo().setKeywords(UnicodeParsedString(obj.getString()));
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
info.free();
|
||||||
|
+#endif
|
||||||
|
if (cropped)
|
||||||
|
{
|
||||||
|
QRectF crBox = getCBox(contentRect, pageNs[0]);
|
||||||
|
@@ -746,8 +795,13 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
pdfDoc->displayPage(dev, pp, hDPI, vDPI, rotate, useMediaBox, crop, printing, NULL, NULL, dev->annotations_callback, dev);
|
||||||
|
}
|
||||||
|
PDFPresentationData ef;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object trans = pdfDoc->getPage(pp)->getTrans();
|
||||||
|
+ Object *transi = &trans;
|
||||||
|
+#else
|
||||||
|
Object trans;
|
||||||
|
Object *transi = pdfDoc->getPage(pp)->getTrans(&trans);
|
||||||
|
+#endif
|
||||||
|
if (transi->isDict())
|
||||||
|
{
|
||||||
|
m_Doc->pdfOptions().PresentMode = true;
|
||||||
|
@@ -793,32 +847,51 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
delete pgTrans;
|
||||||
|
}
|
||||||
|
m_Doc->currentPage()->PresentVals = ef;
|
||||||
|
+#if POPPLER_ENCODED_VERSION < POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
trans.free();
|
||||||
|
transi->free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
int numjs = pdfDoc->getCatalog()->numJS();
|
||||||
|
if (numjs > 0)
|
||||||
|
{
|
||||||
|
NameTree *jsNameTreeP = new NameTree();
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object catDict = pdfDoc->getXRef()->getCatalog();
|
||||||
|
+#else
|
||||||
|
Object catDict;
|
||||||
|
pdfDoc->getXRef()->getCatalog(&catDict);
|
||||||
|
+#endif
|
||||||
|
if (catDict.isDict())
|
||||||
|
{
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object names = catDict.dictLookup("Names");
|
||||||
|
+#else
|
||||||
|
Object names;
|
||||||
|
catDict.dictLookup("Names", &names);
|
||||||
|
+#endif
|
||||||
|
if (names.isDict())
|
||||||
|
{
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object obj = names.dictLookup("JavaScript");
|
||||||
|
+ jsNameTreeP->init(pdfDoc->getXRef(), &obj);
|
||||||
|
+#else
|
||||||
|
Object obj;
|
||||||
|
names.dictLookup("JavaScript", &obj);
|
||||||
|
jsNameTreeP->init(pdfDoc->getXRef(), &obj);
|
||||||
|
obj.free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
for (int a = 0; a < numjs; a++)
|
||||||
|
{
|
||||||
|
m_Doc->JavaScripts.insert(UnicodeParsedString(jsNameTreeP->getName(a)), UnicodeParsedString(pdfDoc->getCatalog()->getJS(a)));
|
||||||
|
}
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ names = catDict.dictLookup("OpenAction");
|
||||||
|
+#else
|
||||||
|
names.free();
|
||||||
|
catDict.dictLookup("OpenAction", &names);
|
||||||
|
+#endif
|
||||||
|
if (names.isDict())
|
||||||
|
{
|
||||||
|
LinkAction *linkAction = NULL;
|
||||||
|
@@ -839,9 +912,13 @@ bool PdfPlug::convert(const QString& fn)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
+#if POPPLER_ENCODED_VERSION < POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
names.free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
+#if POPPLER_ENCODED_VERSION < POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
catDict.free();
|
||||||
|
+#endif
|
||||||
|
delete jsNameTreeP;
|
||||||
|
}
|
||||||
|
m_Doc->pdfOptions().Version = (PDFOptions::PDFVersion)qMin(15, qMax(13, pdfDoc->getPDFMajorVersion() * 10 + pdfDoc->getPDFMinorVersion()));
|
||||||
|
diff --git a/scribus/plugins/import/pdf/slaoutput.cpp b/scribus/plugins/import/pdf/slaoutput.cpp
|
||||||
|
index 32cfed1012..ffa417a3b6 100644
|
||||||
|
--- a/scribus/plugins/import/pdf/slaoutput.cpp
|
||||||
|
+++ b/scribus/plugins/import/pdf/slaoutput.cpp
|
||||||
|
@@ -6,6 +6,7 @@ for which a new license (GPL+exception) is in place.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "slaoutput.h"
|
||||||
|
+#include <poppler/cpp/poppler-version.h>
|
||||||
|
#include <poppler/GlobalParams.h>
|
||||||
|
#include <poppler/poppler-config.h>
|
||||||
|
#include <poppler/FileSpec.h>
|
||||||
|
@@ -19,11 +20,49 @@ for which a new license (GPL+exception) is in place.
|
||||||
|
#include "util_math.h"
|
||||||
|
#include <tiffio.h>
|
||||||
|
|
||||||
|
+#define POPPLER_VERSION_ENCODE(major, minor, micro) ( \
|
||||||
|
+ ((major) * 10000) \
|
||||||
|
+ + ((minor) * 100) \
|
||||||
|
+ + ((micro) * 1))
|
||||||
|
+#define POPPLER_ENCODED_VERSION POPPLER_VERSION_ENCODE(POPPLER_VERSION_MAJOR, POPPLER_VERSION_MINOR, POPPLER_VERSION_MICRO)
|
||||||
|
+
|
||||||
|
LinkSubmitForm::LinkSubmitForm(Object *actionObj)
|
||||||
|
{
|
||||||
|
Object obj1, obj2, obj3;
|
||||||
|
fileName = NULL;
|
||||||
|
m_flags = 0;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ if (actionObj->isDict())
|
||||||
|
+ {
|
||||||
|
+ obj1 = actionObj->dictLookup("F");
|
||||||
|
+ if (!obj1.isNull())
|
||||||
|
+ {
|
||||||
|
+ if (obj1.isDict())
|
||||||
|
+ {
|
||||||
|
+ obj3 = obj1.dictLookup("FS");
|
||||||
|
+ if (!obj3.isNull())
|
||||||
|
+ {
|
||||||
|
+ if (obj3.isName())
|
||||||
|
+ {
|
||||||
|
+ char *name = obj3.getName();
|
||||||
|
+ if (!strcmp(name, "URL"))
|
||||||
|
+ {
|
||||||
|
+ obj2 = obj1.dictLookup("F");
|
||||||
|
+ if (!obj2.isNull())
|
||||||
|
+ fileName = obj2.getString()->copy();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ obj1 = actionObj->dictLookup("Flags");
|
||||||
|
+ if (!obj1.isNull())
|
||||||
|
+ {
|
||||||
|
+ if (obj1.isNum())
|
||||||
|
+ m_flags = obj1.getInt();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
if (actionObj->isDict())
|
||||||
|
{
|
||||||
|
if (!actionObj->dictLookup("F", &obj1)->isNull())
|
||||||
|
@@ -54,6 +93,7 @@ LinkSubmitForm::LinkSubmitForm(Object *actionObj)
|
||||||
|
}
|
||||||
|
obj1.free();
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
LinkSubmitForm::~LinkSubmitForm()
|
||||||
|
@@ -66,11 +106,25 @@ LinkImportData::LinkImportData(Object *actionObj)
|
||||||
|
{
|
||||||
|
Object obj1, obj3;
|
||||||
|
fileName = NULL;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ if (actionObj->isDict())
|
||||||
|
+ {
|
||||||
|
+ obj1 = actionObj->dictLookup("F");
|
||||||
|
+ if (!obj1.isNull())
|
||||||
|
+ {
|
||||||
|
+ obj3 = getFileSpecNameForPlatform(&obj1);
|
||||||
|
+ if (!obj3.isNull())
|
||||||
|
+ {
|
||||||
|
+ fileName = obj3.getString()->copy();
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
if (actionObj->isDict())
|
||||||
|
{
|
||||||
|
if (!actionObj->dictLookup("F", &obj1)->isNull())
|
||||||
|
{
|
||||||
|
- if (getFileSpecNameForPlatform (&obj1, &obj3))
|
||||||
|
+ if (getFileSpecNameForPlatform(&obj1, &obj3))
|
||||||
|
{
|
||||||
|
fileName = obj3.getString()->copy();
|
||||||
|
obj3.free();
|
||||||
|
@@ -78,6 +132,7 @@ LinkImportData::LinkImportData(Object *actionObj)
|
||||||
|
}
|
||||||
|
obj1.free();
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
LinkImportData::~LinkImportData()
|
||||||
|
@@ -256,6 +311,27 @@ LinkAction* SlaOutputDev::SC_getAction(AnnotWidget *ano)
|
||||||
|
Object obj;
|
||||||
|
Ref refa = ano->getRef();
|
||||||
|
Object additionalActions;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ obj = xref->fetch(refa.num, refa.gen);
|
||||||
|
+ if (obj.isDict())
|
||||||
|
+ {
|
||||||
|
+ Dict* adic = obj.getDict();
|
||||||
|
+ additionalActions = adic->lookupNF("A");
|
||||||
|
+ Object additionalActionsObject = additionalActions.fetch(pdfDoc->getXRef());
|
||||||
|
+ if (additionalActionsObject.isDict())
|
||||||
|
+ {
|
||||||
|
+ Object actionObject = additionalActionsObject.dictLookup("S");
|
||||||
|
+ if (actionObject.isName("ImportData"))
|
||||||
|
+ {
|
||||||
|
+ linkAction = new LinkImportData(&additionalActionsObject);
|
||||||
|
+ }
|
||||||
|
+ else if (actionObject.isName("SubmitForm"))
|
||||||
|
+ {
|
||||||
|
+ linkAction = new LinkSubmitForm(&additionalActionsObject);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
Object *act = xref->fetch(refa.num, refa.gen, &obj);
|
||||||
|
if (act)
|
||||||
|
{
|
||||||
|
@@ -283,6 +359,7 @@ LinkAction* SlaOutputDev::SC_getAction(AnnotWidget *ano)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
obj.free();
|
||||||
|
+#endif
|
||||||
|
return linkAction;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -293,6 +370,22 @@ LinkAction* SlaOutputDev::SC_getAdditionalAction(const char *key, AnnotWidget *a
|
||||||
|
Object obj;
|
||||||
|
Ref refa = ano->getRef();
|
||||||
|
Object additionalActions;
|
||||||
|
+
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ obj = xref->fetch(refa.num, refa.gen);
|
||||||
|
+ if (obj.isDict())
|
||||||
|
+ {
|
||||||
|
+ Dict* adic = obj.getDict();
|
||||||
|
+ additionalActions = adic->lookupNF("AA");
|
||||||
|
+ Object additionalActionsObject = additionalActions.fetch(pdfDoc->getXRef());
|
||||||
|
+ if (additionalActionsObject.isDict())
|
||||||
|
+ {
|
||||||
|
+ Object actionObject = additionalActionsObject.dictLookup(key);
|
||||||
|
+ if (actionObject.isDict())
|
||||||
|
+ linkAction = LinkAction::parseAction(&actionObject, pdfDoc->getCatalog()->getBaseURI());
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
Object *act = xref->fetch(refa.num, refa.gen, &obj);
|
||||||
|
if (act)
|
||||||
|
{
|
||||||
|
@@ -313,6 +406,7 @@ LinkAction* SlaOutputDev::SC_getAdditionalAction(const char *key, AnnotWidget *a
|
||||||
|
}
|
||||||
|
}
|
||||||
|
obj.free();
|
||||||
|
+#endif
|
||||||
|
return linkAction;
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -838,6 +932,33 @@ bool SlaOutputDev::handleWidgetAnnot(Annot* annota, double xCoor, double yCoor,
|
||||||
|
{
|
||||||
|
Object obj1;
|
||||||
|
Ref refa = annota->getRef();
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ obj1 = xref->fetch(refa.num, refa.gen);
|
||||||
|
+ if (obj1.isDict())
|
||||||
|
+ {
|
||||||
|
+ Dict* dict = obj1.getDict();
|
||||||
|
+ Object obj2 = dict->lookup("Kids");
|
||||||
|
+ //childs
|
||||||
|
+ if (obj2.isArray())
|
||||||
|
+ {
|
||||||
|
+ // Load children
|
||||||
|
+ QList<int> radList;
|
||||||
|
+ for (int i = 0; i < obj2.arrayGetLength(); i++)
|
||||||
|
+ {
|
||||||
|
+ Object childRef = obj2.arrayGetNF(i);
|
||||||
|
+ if (!childRef.isRef())
|
||||||
|
+ continue;
|
||||||
|
+ Object childObj = obj2.arrayGet(i);
|
||||||
|
+ if (!childObj.isDict())
|
||||||
|
+ continue;
|
||||||
|
+ const Ref ref = childRef.getRef();
|
||||||
|
+ radList.append(ref.num);
|
||||||
|
+ }
|
||||||
|
+ QString tmTxt = UnicodeParsedString(annota->getName());
|
||||||
|
+ m_radioMap.insert(tmTxt, radList);
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
Object *act = xref->fetch(refa.num, refa.gen, &obj1);
|
||||||
|
if (act && act->isDict())
|
||||||
|
{
|
||||||
|
@@ -873,6 +994,7 @@ bool SlaOutputDev::handleWidgetAnnot(Annot* annota, double xCoor, double yCoor,
|
||||||
|
obj2.free();
|
||||||
|
}
|
||||||
|
obj1.free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
return retVal;
|
||||||
|
}
|
||||||
|
@@ -3007,6 +3129,23 @@ void SlaOutputDev::beginMarkedContent(char *name, Object *dictRef)
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ dictObj = dictRef->fetch(xref);
|
||||||
|
+ if (!dictObj.isDict())
|
||||||
|
+ return;
|
||||||
|
+ dict = dictObj.getDict();
|
||||||
|
+ dictType = dict->lookup("Type");
|
||||||
|
+ if (dictType.isName("OCG"))
|
||||||
|
+ {
|
||||||
|
+ oc = contentConfig->findOcgByRef(dictRef->getRef());
|
||||||
|
+ if (oc)
|
||||||
|
+ {
|
||||||
|
+ // qDebug() << "Begin OCG Content with Name " << UnicodeParsedString(oc->getName());
|
||||||
|
+ m_doc->setActiveLayer(UnicodeParsedString(oc->getName()));
|
||||||
|
+ mSte.ocgName = UnicodeParsedString(oc->getName());
|
||||||
|
+ }
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
dictRef->fetch(xref, &dictObj);
|
||||||
|
if (!dictObj.isDict())
|
||||||
|
{
|
||||||
|
@@ -3027,6 +3166,7 @@ void SlaOutputDev::beginMarkedContent(char *name, Object *dictRef)
|
||||||
|
}
|
||||||
|
dictType.free();
|
||||||
|
dictObj.free();
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
m_mcStack.push(mSte);
|
||||||
|
@@ -3046,14 +3186,20 @@ void SlaOutputDev::beginMarkedContent(char *name, Dict *properties)
|
||||||
|
{
|
||||||
|
if (layersSetByOCG)
|
||||||
|
return;
|
||||||
|
- Object obj;
|
||||||
|
QString lName = QString("Layer_%1").arg(layerNum + 1);
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ Object obj = properties->lookup((char*) "Title");
|
||||||
|
+ if (obj.isString())
|
||||||
|
+ lName = QString(obj.getString()->getCString());
|
||||||
|
+#else
|
||||||
|
+ Object obj;
|
||||||
|
if (properties->lookup((char*)"Title", &obj))
|
||||||
|
{
|
||||||
|
if (obj.isString())
|
||||||
|
lName = QString(obj.getString()->getCString());
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
for (ScLayers::iterator it = m_doc->Layers.begin(); it != m_doc->Layers.end(); ++it)
|
||||||
|
{
|
||||||
|
if (it->Name == lName)
|
||||||
|
@@ -3066,6 +3212,29 @@ void SlaOutputDev::beginMarkedContent(char *name, Dict *properties)
|
||||||
|
if (!firstLayer)
|
||||||
|
currentLayer = m_doc->addLayer(lName, true);
|
||||||
|
firstLayer = false;
|
||||||
|
+#if POPPLER_ENCODED_VERSION >= POPPLER_VERSION_ENCODE(0, 58, 0)
|
||||||
|
+ obj = properties->lookup((char*) "Visible");
|
||||||
|
+ if (obj.isBool())
|
||||||
|
+ m_doc->setLayerVisible(currentLayer, obj.getBool());
|
||||||
|
+ obj = properties->lookup((char*) "Editable");
|
||||||
|
+ if (obj.isBool())
|
||||||
|
+ m_doc->setLayerLocked(currentLayer, !obj.getBool());
|
||||||
|
+ obj = properties->lookup((char*) "Printed");
|
||||||
|
+ if (obj.isBool())
|
||||||
|
+ m_doc->setLayerPrintable(currentLayer, obj.getBool());
|
||||||
|
+ obj = properties->lookup((char*)"Color");
|
||||||
|
+ if (obj.isArray())
|
||||||
|
+ {
|
||||||
|
+ Object obj1;
|
||||||
|
+ obj1 = obj.arrayGet(0);
|
||||||
|
+ int r = obj1.getNum() / 256;
|
||||||
|
+ obj1 = obj.arrayGet(1);
|
||||||
|
+ int g = obj1.getNum() / 256;
|
||||||
|
+ obj1 = obj.arrayGet(2);
|
||||||
|
+ int b = obj1.getNum() / 256;
|
||||||
|
+ m_doc->setLayerMarker(currentLayer, QColor(r, g, b));
|
||||||
|
+ }
|
||||||
|
+#else
|
||||||
|
if (properties->lookup((char*)"Visible", &obj))
|
||||||
|
{
|
||||||
|
if (obj.isBool())
|
||||||
|
@@ -3102,6 +3271,7 @@ void SlaOutputDev::beginMarkedContent(char *name, Dict *properties)
|
||||||
|
}
|
||||||
|
obj.free();
|
||||||
|
}
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,32 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=5
|
||||||
|
|
||||||
|
inherit sgml-catalog eutils
|
||||||
|
|
||||||
|
DESCRIPTION="DTDs for the HyperText Markup Language 4.01"
|
||||||
|
HOMEPAGE="http://www.w3.org/TR/html401/"
|
||||||
|
SRC_URI="http://www.w3.org/TR/html401/html40.tgz"
|
||||||
|
|
||||||
|
LICENSE="W3C"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~s390 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
IUSE=""
|
||||||
|
DEPEND="app-text/sgml-common"
|
||||||
|
RDEPEND=""
|
||||||
|
|
||||||
|
S=${WORKDIR}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sgml-catalog_cat_include "/etc/sgml/${PN}.cat" \
|
||||||
|
"/usr/share/sgml/${PN}/HTML4.cat"
|
||||||
|
epatch "${FILESDIR}"/${PN}-decl.diff
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/sgml/${PN}
|
||||||
|
doins HTML4.cat HTML4.decl *.dtd *.ent
|
||||||
|
insinto /usr/share/doc/${PF}/html
|
||||||
|
doins -r *.html $(ls -p | fgrep "/" | sed "s#/##")
|
||||||
|
}
|
@ -1,2 +1 @@
|
|||||||
DIST unpaper-5.1.tar.xz 2861432 BLAKE2B 4f07af2ff86181f6941f924cb0a06c8268c5b50fbff3a25faea5ae9657b965277f9d33ff7fbcff29cff7c799fe9861c50dc3a7f583a1620ee6e92fdf42410165 SHA512 5ccd90c4c92774085df6cee5552d72d538d3ee553f95ca3d2bea850975ac6e728be97aa7dca194ba44ef8156c26c19d61d051c4581100f8c553998d9a86cefdf
|
|
||||||
DIST unpaper-6.1.tar.xz 2655724 BLAKE2B df16261d37d5d493aa640cd940b63f55e90ba091e6028dc11dd0c685ec880a7be202d4056756ef0fa54b48b89f1845b9cf23aceeb87945a1b6a25eec4b7c0915 SHA512 afef705985d3c265672c9e42130acc34befc080c361f3169e299b5110c662d0b9845a9d0ca4fc3aad468f49967ded36fb60ffed296373569dd7337c3cb81e79c
|
DIST unpaper-6.1.tar.xz 2655724 BLAKE2B df16261d37d5d493aa640cd940b63f55e90ba091e6028dc11dd0c685ec880a7be202d4056756ef0fa54b48b89f1845b9cf23aceeb87945a1b6a25eec4b7c0915 SHA512 afef705985d3c265672c9e42130acc34befc080c361f3169e299b5110c662d0b9845a9d0ca4fc3aad468f49967ded36fb60ffed296373569dd7337c3cb81e79c
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
|
||||||
EGIT_REPO_URI="https://github.com/Flameeyes/unpaper.git"
|
|
||||||
inherit git-2 autotools
|
|
||||||
else
|
|
||||||
SRC_URI="https://www.flameeyes.eu/files/${P}.tar.xz"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Post-processor for scanned and photocopied book pages"
|
|
||||||
HOMEPAGE="https://www.flameeyes.eu/projects/unpaper"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
DEPEND="test? ( media-libs/netpbm[png] )
|
|
||||||
dev-libs/libxslt
|
|
||||||
app-text/docbook-xsl-ns-stylesheets"
|
|
||||||
RDEPEND=""
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
|
|
||||||
src_configure() {
|
|
||||||
econf \
|
|
||||||
--docdir=/usr/share/doc/${PF} \
|
|
||||||
--htmldir=/usr/share/doc/${PF}/html
|
|
||||||
}
|
|
@ -1,39 +0,0 @@
|
|||||||
# Copyright 1999-2014 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=5
|
|
||||||
|
|
||||||
inherit autotools-utils
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
|
||||||
EGIT_REPO_URI="https://github.com/Flameeyes/unpaper.git"
|
|
||||||
inherit git-2 autotools
|
|
||||||
else
|
|
||||||
SRC_URI="https://www.flameeyes.eu/files/${P}.tar.xz"
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
fi
|
|
||||||
|
|
||||||
DESCRIPTION="Post-processor for scanned and photocopied book pages"
|
|
||||||
HOMEPAGE="https://www.flameeyes.eu/projects/unpaper"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
|
|
||||||
SLOT="0"
|
|
||||||
IUSE="test"
|
|
||||||
|
|
||||||
RDEPEND="|| ( >=media-video/libav-10[encode] >=media-video/ffmpeg-2[encode] )"
|
|
||||||
DEPEND="dev-libs/libxslt
|
|
||||||
app-text/docbook-xsl-ns-stylesheets
|
|
||||||
virtual/pkgconfig
|
|
||||||
${RDEPEND}"
|
|
||||||
|
|
||||||
# gcc can generate slightly different code that leads to slightly different
|
|
||||||
# images. Wait until we get a better testsuite.
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
|
||||||
src_prepare() {
|
|
||||||
eautoreconf
|
|
||||||
autotools-utils_src_prepare
|
|
||||||
}
|
|
||||||
fi
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue