tapp-editors/kompozer: Remove - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 5ed67710e497225ac84ec6eb4a43d9a283036cc1 DIR parent e59edc402489dd7d4841a8052eeb7433a4980944 HTML Author: parazyd <parazyd@dyne.org> Date: Thu, 13 Oct 2016 12:33:45 +0200 app-editors/kompozer: Remove Diffstat: M README.md | 75 +++++++++++++++++++++++-------- D app-editors/kompozer/files/kompoze… | 12 ------------ D app-editors/kompozer/files/mozconf… | 76 ------------------------------- D app-editors/kompozer/files/mozconf… | 76 ------------------------------- D app-editors/kompozer/files/mozcore… | 294 ------------------------------- D app-editors/kompozer/files/mozexte… | 68 ------------------------------- D app-editors/kompozer/files/seamonk… | 17 ----------------- D app-editors/kompozer/kompozer-0.8_… | 306 ------------------------------- 8 files changed, 57 insertions(+), 867 deletions(-) --- DIR diff --git a/README.md b/README.md t@@ -1,21 +1,60 @@ # parazyd-overlay Yet another Gentoo overlay -* app-crypt - * steghide - * tomb -* app-laptop - * thinkfan - * tp_smapi -* app-misc - * tbt -* mail-client - * mutt-kz -* media-video - * simplescreenrecorder -* net-analyzer - * ettercap -* net-wireless - * aircrack-ng - * pixiewps - * reaver-wps-fork-t6x + +. +├── app-crypt +│ ├── steghide +│ │ └── files +│ └── tomb +├── app-laptop +│ ├── thinkfan +│ │ └── files +│ └── tp_smapi +│ └── files +├── app-misc +│ ├── tbt +│ └── wipe +│ └── files +├── app-text +│ └── mupdf +│ └── files +├── dev-lang +│ └── ruby +│ └── files +├── dev-libs +│ └── glib +│ └── files +├── dev-util +│ └── ltrace +│ └── files +├── eclass +├── licenses +├── media-libs +│ └── fontconfig +│ └── files +├── metadata +├── net-analyzer +│ ├── ettercap +│ └── macchanger +│ └── files +├── net-dialup +│ └── minicom +│ └── files +├── net-misc +│ ├── bridge-utils +│ │ └── files +│ └── telnet-bsd +│ └── files +├── net-proxy +│ └── torsocks +│ └── files +├── net-wireless +│ ├── aircrack-ng +│ ├── pixiewps +│ └── reaver-wps-fork-t6x +│ └── files +├── profiles +└── sets + +53 directories DIR diff --git a/app-editors/kompozer/files/kompozer.desktop b/app-editors/kompozer/files/kompozer.desktop t@@ -1,12 +0,0 @@ -[Desktop Entry] -Name=KompoZer -Comment=WYSIWYG Web Editor -Exec=kompozer -Icon=kompozer -Terminal=false -Type=Application -Categories=Application;Development; -StartupNotify=true -Encoding=UTF-8 - - DIR diff --git a/app-editors/kompozer/files/mozconfig-0.8_alpha4 b/app-editors/kompozer/files/mozconfig-0.8_alpha4 t@@ -1,76 +0,0 @@ -# sh -# Build configuration script for LINUX -# -# See http://www.mozilla.org/build/unix.html for build instructions. -# - -# Kaze: maybe the Nvu icon will stop showing off if these two lines are disabled... -#export MOZILLA_OFFICIAL=1 -#export BUILD_OFFICIAL=1 - -export MOZ_STANDALONE_COMPOSER=1 -mk_add_options MOZ_STANDALONE_COMPOSER=1 - -# if you want don't want to use gcc and g or want to use -# a specific version of the compilers, specify it in the -# two following lines and uncomment them -#export CC="gcc-3.0" -#export CXX="g-3.0" - -# Uncomment the two following lines if you want the Site Manager -# to use KDE mimetypes icons. Warning, experimental feature... -# You may have to edit the following files -# mozilla/composer/app/Makefile.in -# mozilla/editor/libeditor/html/Makefile.in -# mozilla/composer/src/* -#export SITE_MANAGER_KDE_ICON_STYLE=1 -#mk_add_options SITE_MANAGER_KDE_ICON_STYLE=1 - -# Uncomment and edit this line if you want to build -# outside of the source tree -mk_add_options MOZ_OBJDIR=../obj-kompozer - -# Comment out the following lines for a debug build -ac_add_options --enable-optimize -ac_add_options --disable-debug - -# Kaze was here ;-) -ac_add_options --prefix=/usr - -# enable minimal profile support -ac_add_options --disable-profilesharing -ac_add_options --disable-profilelocking -ac_add_options --enable-single-profile - -# You probably have nothing to change below that line -ac_add_options --disable-svg -ac_add_options --without-system-mng -ac_add_options --without-system-png -ac_add_options --disable-ldap -ac_add_options --disable-mailnews -ac_add_options --disable-installer -ac_add_options --disable-activex -ac_add_options --disable-activex-scripting -ac_add_options --disable-tests -ac_add_options --disable-oji -ac_add_options --disable-necko-disk-cache -ac_add_options --enable-extensions=wallet,xml-rpc,xmlextras,pref,universalchardet,spellcheck -ac_add_options --enable-necko-protocols=http,ftp,file,jar,viewsource,res,data -ac_add_options --disable-pedantic -ac_add_options --disable-short-wchar -ac_add_options --disable-xprint -ac_add_options --enable-strip-libs -ac_add_options --enable-crypto -ac_add_options --disable-mathml -ac_add_options --with-system-zlib -ac_add_options --enable-xft -ac_add_options --disable-freetype2 - -# Note: Only include icon for mac, windows and os2 -ac_add_options --enable-image-decoders=default,-xbm - - -# Added by unregistr3d (Bug: 14671) for gentoo: -ac_add_options --enable-application=composer -ac_add_options --enable-system-cairo -ac_cv_visibility_pragma=no DIR diff --git a/app-editors/kompozer/files/mozconfig-0.8_beta1 b/app-editors/kompozer/files/mozconfig-0.8_beta1 t@@ -1,76 +0,0 @@ -# sh -# Build configuration script for LINUX -# -# See http://www.mozilla.org/build/unix.html for build instructions. -# - -# Kaze: maybe the Nvu icon will stop showing off if these two lines are disabled... -#export MOZILLA_OFFICIAL=1 -#export BUILD_OFFICIAL=1 - -export MOZ_STANDALONE_COMPOSER=1 -mk_add_options MOZ_STANDALONE_COMPOSER=1 - -# if you want don't want to use gcc and g or want to use -# a specific version of the compilers, specify it in the -# two following lines and uncomment them -#export CC="gcc-3.0" -#export CXX="g-3.0" - -# Uncomment the two following lines if you want the Site Manager -# to use KDE mimetypes icons. Warning, experimental feature... -# You may have to edit the following files -# mozilla/composer/app/Makefile.in -# mozilla/editor/libeditor/html/Makefile.in -# mozilla/composer/src/* -#export SITE_MANAGER_KDE_ICON_STYLE=1 -#mk_add_options SITE_MANAGER_KDE_ICON_STYLE=1 - -# Uncomment and edit this line if you want to build -# outside of the source tree -mk_add_options MOZ_OBJDIR=../obj-kompozer - -# Comment out the following lines for a debug build -ac_add_options --enable-optimize -ac_add_options --disable-debug - -# Kaze was here ;-) -ac_add_options --prefix=/usr - -# enable minimal profile support -ac_add_options --disable-profilesharing -ac_add_options --disable-profilelocking -ac_add_options --enable-single-profile - -# You probably have nothing to change below that line -ac_add_options --disable-svg -ac_add_options --without-system-mng -ac_add_options --without-system-png -ac_add_options --disable-ldap -ac_add_options --disable-mailnews -ac_add_options --disable-installer -ac_add_options --disable-activex -ac_add_options --disable-activex-scripting -ac_add_options --disable-tests -ac_add_options --disable-oji -ac_add_options --disable-necko-disk-cache -ac_add_options --enable-extensions=wallet,xml-rpc,xmlextras,pref,universalchardet,spellcheck -ac_add_options --enable-necko-protocols=http,ftp,file,jar,viewsource,res,data -ac_add_options --disable-pedantic -ac_add_options --disable-short-wchar -ac_add_options --disable-xprint -ac_add_options --enable-strip-libs -ac_add_options --enable-crypto -ac_add_options --disable-mathml -ac_add_options --with-system-zlib -ac_add_options --enable-xft -ac_add_options --disable-freetype2 - -# Note: Only include icon for mac, windows and os2 -ac_add_options --enable-image-decoders=default,-xbm - - -# Added by unregistr3d (Bug: 14671) for gentoo: -ac_add_options --enable-application=composer -ac_add_options --enable-system-cairo -ac_cv_visibility_pragma=no DIR diff --git a/app-editors/kompozer/files/mozcoreconf-2.eclass b/app-editors/kompozer/files/mozcoreconf-2.eclass t@@ -1,294 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mozcoreconf-2.eclass,v 1.15 2010/01/27 18:58:04 armin76 Exp $ -# -# mozcoreconf.eclass : core options for mozilla -# inherit mozconfig-2 if you need USE flags - -inherit multilib flag-o-matic - -IUSE="${IUSE} custom-optimization" - -RDEPEND="x11-libs/libXrender - x11-libs/libXt - x11-libs/libXmu - >=sys-libs/zlib-1.1.4" - -DEPEND="${RDEPEND} - dev-util/pkgconfig" - -# Set by configure (plus USE_AUTOCONF=1), but useful for NSPR -export MOZILLA_CLIENT=1 -export BUILD_OPT=1 -export NO_STATIC_LIB=1 -export USE_PTHREADS=1 - -mozconfig_init() { - declare enable_optimize pango_version myext x - declare MOZ=$([[ ${PN} == mozilla || ${PN} == gecko-sdk ]] && echo true || echo false) - declare FF=$([[ ${PN} == *firefox ]] && echo true || echo false) - declare TB=$([[ ${PN} == *thunderbird ]] && echo true || echo false) - declare SB=$([[ ${PN} == *sunbird ]] && echo true || echo false) - declare EM=$([[ ${PN} == enigmail ]] && echo true || echo false) - declare XUL=$([[ ${PN} == *xulrunner ]] && echo true || echo false) - declare SM=$([[ ${PN} == seamonkey ]] && echo true || echo false) - declare IC=$([[ ${PN} == *icecat ]] && echo true || echo false) - declare IC=$([[ ${PN} == kompozer ]] && echo true || echo false) - - #################################### - # - # Setup the initial .mozconfig - # See http://www.mozilla.org/build/configure-build.html - # - #################################### - - case ${PN} in - mozilla|gecko-sdk) - # The other builds have an initial --enable-extensions in their - # .mozconfig. The "default" set in configure applies to mozilla - # specifically. - : >.mozconfig || die "initial mozconfig creation failed" - mozconfig_annotate "" --enable-extensions=default ;; - *firefox) - cp browser/config/mozconfig .mozconfig \ - || die "cp browser/config/mozconfig failed" ;; - enigmail) - cp mail/config/mozconfig .mozconfig \ - || die "cp mail/config/mozconfig failed" ;; - *xulrunner) - cp xulrunner/config/mozconfig .mozconfig \ - || die "cp xulrunner/config/mozconfig failed" ;; - *sunbird) - cp calendar/sunbird/config/mozconfig .mozconfig \ - || die "cp calendar/sunbird/config/mozconfig failed" ;; - *thunderbird) - cp mail/config/mozconfig .mozconfig \ - || die "cp mail/config/mozconfig failed" ;; - seamonkey) - # The other builds have an initial --enable-extensions in their - # .mozconfig. The "default" set in configure applies to mozilla - # specifically. - : >.mozconfig || die "initial mozconfig creation failed" - mozconfig_annotate "" --enable-application=suite - mozconfig_annotate "" --enable-extensions=default ;; - *icecat) - cp browser/config/mozconfig .mozconfig \ - || die "cp browser/config/mozconfig failed" ;; - kompozer) - # The other builds have an initial --enable-extensions in their - # .mozconfig. The "default" set in configure applies to mozilla - # specifically. - : >.mozconfig || die "initial mozconfig creation failed" ;; - esac - - #################################### - # - # CFLAGS setup and ARCH support - # - #################################### - - # Set optimization level - if [[ ${ARCH} == hppa ]]; then - mozconfig_annotate "more than -O0 causes segfaults on hppa" --enable-optimize=-O0 - elif [[ ${ARCH} == x86 ]]; then - mozconfig_annotate "less then -O2 causes a segfault on x86" --enable-optimize=-O2 - elif use custom-optimization || [[ ${ARCH} == alpha ]]; then - # Set optimization level based on CFLAGS - if is-flag -O0; then - mozconfig_annotate "from CFLAGS" --enable-optimize=-O0 - elif [[ ${ARCH} == ppc ]] && has_version '>=sys-libs/glibc-2.8'; then - mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" --enable-optimize=-O1 - elif is-flag -O1; then - mozconfig_annotate "from CFLAGS" --enable-optimize=-O1 - elif is-flag -Os; then - mozconfig_annotate "from CFLAGS" --enable-optimize=-Os - else - mozconfig_annotate "Gentoo's default optimization" --enable-optimize=-O2 - fi - else - # Enable Mozilla's default - mozconfig_annotate "mozilla default" --enable-optimize - fi - - # Now strip optimization from CFLAGS so it doesn't end up in the - # compile string - filter-flags '-O*' - - # Strip over-aggressive CFLAGS - Mozilla supplies its own - # fine-tuned CFLAGS and shouldn't be interfered with.. Do this - # AFTER setting optimization above since strip-flags only allows - # -O -O1 and -O2 - strip-flags - - # Additional ARCH support - case "${ARCH}" in - alpha) - # Historically we have needed to add -fPIC manually for 64-bit. - # Additionally, alpha should *always* build with -mieee for correct math - # operation - append-flags -fPIC -mieee - ;; - - amd64|ia64) - # Historically we have needed to add this manually for 64-bit - append-flags -fPIC - ;; - - ppc64) - append-flags -fPIC -mminimal-toc - ;; - - ppc) - # Fix to avoid gcc-3.3.x micompilation issues. - if [[ $(gcc-major-version).$(gcc-minor-version) == 3.3 ]]; then - append-flags -fno-strict-aliasing - fi - ;; - - x86) - if [[ $(gcc-major-version) -eq 3 ]]; then - # gcc-3 prior to 3.2.3 doesn't work well for pentium4 - # see bug 25332 - if [[ $(gcc-minor-version) -lt 2 || - ( $(gcc-minor-version) -eq 2 && $(gcc-micro-version) -lt 3 ) ]] - then - replace-flags -march=pentium4 -march=pentium3 - filter-flags -msse2 - fi - fi - ;; - esac - - if [[ $(gcc-major-version) -eq 3 ]]; then - # Enable us to use flash, etc plugins compiled with gcc-2.95.3 - mozconfig_annotate "building with >=gcc-3" --enable-old-abi-compat-wrappers - - # Needed to build without warnings on gcc-3 - CXXFLAGS="${CXXFLAGS} -Wno-deprecated" - fi - - # Go a little faster; use less RAM - append-flags "$MAKEEDIT_FLAGS" - - #################################### - # - # mozconfig setup - # - #################################### - - mozconfig_annotate gentoo \ - --disable-installer \ - --disable-pedantic \ - --enable-crypto \ - --with-system-jpeg \ - --with-system-zlib \ - --disable-updater \ - --enable-pango \ - --enable-svg \ - --enable-system-cairo \ - --disable-strip \ - --disable-strip-libs \ - --disable-install-strip \ - --with-distribution-id=org.gentoo - - # This doesn't work yet - #--with-system-png \ - - if [[ ${PN} != seamonkey ]]; then - mozconfig_annotate gentoo \ - --enable-single-profile \ - --disable-profilesharing \ - --disable-profilelocking - fi - - # Here is a strange one... - if is-flag '-mcpu=ultrasparc*' || is-flag '-mtune=ultrasparc*'; then - mozconfig_annotate "building on ultrasparc" --enable-js-ultrasparc - fi - - # jemalloc won't build with older glibc - ! has_version ">=sys-libs/glibc-2.4" && mozconfig_annotate "we have old glibc" --disable-jemalloc -} - -# Simulate the silly csh makemake script -makemake() { - typeset m topdir - for m in $(find . -name Makefile.in); do - topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') - sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \ - < ${m} > ${m%.in} || die "sed ${m} failed" - done -} - -makemake2() { - for m in $(find ../ -name Makefile.in); do - topdir=$(echo "$m" | sed -r 's:[^/]+:..:g') - sed -e "s:@srcdir@:.:g" -e "s:@top_srcdir@:${topdir}:g" \ - < ${m} > ${m%.in} || die "sed ${m} failed" - done -} - -# mozconfig_annotate: add an annotated line to .mozconfig -# -# Example: -# mozconfig_annotate "building on ultrasparc" --enable-js-ultrasparc -# => ac_add_options --enable-js-ultrasparc # building on ultrasparc -mozconfig_annotate() { - declare reason=$1 x ; shift - [[ $# -gt 0 ]] || die "mozconfig_annotate missing flags for ${reason}\!" - for x in ${*}; do - echo "ac_add_options ${x} # ${reason}" >>.mozconfig - done -} - -# mozconfig_use_enable: add a line to .mozconfig based on a USE-flag -# -# Example: -# mozconfig_use_enable truetype freetype2 -# => ac_add_options --enable-freetype2 # +truetype -mozconfig_use_enable() { - declare flag=$(use_enable "$@") - mozconfig_annotate "$(useq $1 && echo +$1 || echo -$1)" "${flag}" -} - -# mozconfig_use_with: add a line to .mozconfig based on a USE-flag -# -# Example: -# mozconfig_use_with kerberos gss-api /usr/$(get_libdir) -# => ac_add_options --with-gss-api=/usr/lib # +kerberos -mozconfig_use_with() { - declare flag=$(use_with "$@") - mozconfig_annotate "$(useq $1 && echo +$1 || echo -$1)" "${flag}" -} - -# mozconfig_use_extension: enable or disable an extension based on a USE-flag -# -# Example: -# mozconfig_use_extension gnome gnomevfs -# => ac_add_options --enable-extensions=gnomevfs -mozconfig_use_extension() { - declare minus=$(useq $1 || echo -) - mozconfig_annotate "${minus:-+}$1" --enable-extensions=${minus}${2} -} - -# mozconfig_final: display a table describing all configuration options paired -# with reasons, then clean up extensions list -mozconfig_final() { - declare ac opt hash reason - echo - echo "==========================================================" - echo "Building ${PF} with the following configuration" - grep ^ac_add_options .mozconfig | while read ac opt hash reason; do - [[ -z ${hash} || ${hash} == \# ]] \ - || die "error reading mozconfig: ${ac} ${opt} ${hash} ${reason}" - printf " %-30s %s\n" "${opt}" "${reason:-mozilla.org default}" - done - echo "==========================================================" - echo - - # Resolve multiple --enable-extensions down to one - declare exts=$(sed -n 's/^ac_add_options --enable-extensions=\([^ ]*\).*/\1/p' \ - .mozconfig | xargs) - sed -i '/^ac_add_options --enable-extensions/d' .mozconfig - echo "ac_add_options --enable-extensions=${exts// /,}" >> .mozconfig -} DIR diff --git a/app-editors/kompozer/files/mozextension.eclass b/app-editors/kompozer/files/mozextension.eclass t@@ -1,68 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.4 2007/12/20 15:43:14 armin76 Exp $ -# -# mozextention.eclass: installing firefox extensions and language packs - -inherit eutils - -DEPEND="app-arch/unzip" - -xpi_unpack() { - local xpi xpiname srcdir - - # Not gonna use ${A} as we are looking for a specific option being passed to function - # You must specify which xpi to use - [[ -z "$*" ]] && die "Nothing passed to the $FUNCNAME command. please pass which xpi to unpack" - - for xpi in "$@"; do - einfo "Unpacking ${xpi} to ${PWD}" - xpiname=$(basename ${xpi%.*}) - - if [[ "${xpi:0:2}" != "./" ]] && [[ "${xpi:0:1}" != "/" ]] ; then - srcdir="${DISTDIR}/" - fi - - [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist" - - case "${xpi##*.}" in - ZIP|zip|jar|xpi) - mkdir "${WORKDIR}/${xpiname}" && \ - cd "${WORKDIR}/${xpiname}" && \ - unzip -qo "${srcdir}${xpi}" || die "failed to unpack ${xpi}" - ;; - *) - einfo "unpack ${xpi}: file format not recognized. Ignoring." - ;; - esac - done -} - - -xpi_install() { - local emid - - # You must tell xpi_install which xpi to use - [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack" - - x="${1}" - cd ${x} - # determine id for extension - emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id" - insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid} - doins -r "${x}"/* || die "failed to copy extension" -} - -xpi_dict_install() { - local emid - - # You must tell xpi_install which xpi to use - [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack" - - x="${1}" - cd ${x} - # determine id for extension - emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id" - insinto "${MOZILLA_FIVE_HOME}"/${emid} - doins -r "${x}"/* || die "failed to copy extension" -} DIR diff --git a/app-editors/kompozer/files/seamonkey-libpng14.patch b/app-editors/kompozer/files/seamonkey-libpng14.patch t@@ -1,17 +0,0 @@ -diff -Naur mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp{-,} ---- mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp- 2010-06-10 19:34:09.000000000 -0700 -+++ mozilla/modules/libpr0n/encoders/png/nsPNGEncoder.cpp 2010-06-10 19:35:13.000000000 -0700 -@@ -111,9 +111,9 @@ - - // initialize - png_struct* png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, -- png_voidp_NULL, -- png_error_ptr_NULL, -- png_error_ptr_NULL); -+ NULL, -+ NULL, -+ NULL); - if (! png_ptr) - return NS_ERROR_OUT_OF_MEMORY; - png_info* info_ptr = png_create_info_struct(png_ptr); - DIR diff --git a/app-editors/kompozer/kompozer-0.8_beta3.ebuild b/app-editors/kompozer/kompozer-0.8_beta3.ebuild t@@ -1,306 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: $ - -EAPI="2" -WANT_AUTOCONF="2.1" - -inherit eutils toolchain-funcs mozconfig-3 autotools flag-o-matic fdo-mime multilib mozextension java-pkg-opt-2 - -DESCRIPTION="A web authoring system combining web file management and WYSIWYG editing" -HOMEPAGE="http://kompozer.net/" - -LANGS="ca da de en-US eo es-ES fi fr hsb hu it ja nl pl pt-PT ru zh-CN zh-TW" -# manque sur serveur : cs sl -NOSHORTLANGS="es-ES pt-PT xh-CN zh-TW" - -DICTS="bg ca cs da de dsb en-GB en-US eo es-ES fi fr hsb hu it nl pl pt-BR pt-PT ru sl uk" -NOSHORTDICTS="en-GB en-US es-ES pt-BR pt-PT" - -MY_P="${P/_beta3/b3}" -MY_D="myspell-dict" - -# Recommended using ${PN}?? -SRC_URI="http://downloads.sourceforge.net/kompozer/${MY_P}-src.tar.bz2" -REL_URI="http://kompozer.sourceforge.net/l10n/langpacks/kompozer-0.8b3" -DICT_URI="http://kompozer.sourceforge.net/l10n/myspell" - -RESTRICT="nomirror" - -LICENSE="GPL-2" -SLOT="0" - -KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86" -IUSE="gnome java ldap" - - -# linguas -for X in ${LANGS} ; do - if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then - SRC_URI="${SRC_URI} - linguas_${X/-/_}? ( ${REL_URI}/${MY_P}.${X}.xpi -> ${MY_P}-${X}.xpi )" - fi - IUSE="${IUSE} linguas_${X/-/_}" - # english is handled internally - if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then - if [ "${X}" != "en-US" ]; then - SRC_URI="${SRC_URI} - linguas_${X%%-*}? ( ${REL_URI}/${MY_P}.${X}.xpi -> ${MY_P}-${X}.xpi )" - fi - IUSE="${IUSE} linguas_${X%%-*}" - fi -done - - -# myspell dictionaries -for X in ${DICTS} ; do - SRC_URI="${SRC_URI} - linguas_${X/-/_}? ( ${DICT_URI}/${MY_D}.${X}.xpi -> ${MY_D}-${X}.xpi )" - IUSE="${IUSE} linguas_${X/-/_}" - if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTDICTS}; then - SRC_URI="${SRC_URI} - linguas_${X%%-*}? ( ${DICT_URI}/${MY_D}.${X}.xpi -> ${MY_D}-${X}.xpi )" - IUSE="${IUSE} linguas_${X%%-*}" - fi -done - - -RDEPEND="java? ( virtual/jre ) - >=sys-devel/binutils-2.16.1 - >=dev-libs/nss-3.12.2 - >=dev-libs/nspr-4.8 - >=app-text/hunspell-1.2 - >=x11-libs/gtk+-2.10.0 - >=x11-libs/cairo-1.8.8[X] - >=x11-libs/pango-1.14.0[X]" - -DEPEND="${RDEPEND} - dev-util/pkgconfig - sys-apps/gawk - dev-lang/perl - app-doc/doxygen - app-arch/unzip - x11-misc/makedepend - >=media-libs/freetype-2.1.9-r1 - java? ( >=virtual/jdk-1.4 )" - - -S=${WORKDIR}/mozilla - - -linguas() { - local LANG SLANG - for LANG in ${LINGUAS}; do - if has ${LANG} en en_US; then - has en ${linguas} || linguas="${linguas:+"${linguas} "}en" - continue - elif has ${LANG} ${LANGS//-/_}; then - has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" - continue - elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then - for X in ${LANGS}; do - if [[ "${X}" == "${LANG}-"* ]] && \ - [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then - has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" - continue 2 - fi - done - fi - ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" - done -} - - -dicts() { - local LANG SLANG - for LANG in ${LINGUAS}; do - if has ${LANG} ${DICTS//-/_}; then - has ${LANG//_/-} ${dicts} || dicts="${dicts:+"${dicts} "}${LANG//_/-}" - continue - elif [[ " ${DICTS} " == *" ${LANG}-"* ]]; then - for X in ${DICTS}; do - if [[ "${X}" == "${LANG}-"* ]] && \ - [[ " ${NOSHORTDICTS} " != *" ${X} "* ]]; then - has ${X} ${dicts} || dicts="${dicts:+"${dicts} "}${X}" - continue 2 - fi - done - fi - ewarn "Sorry, but ${PN} does not support the ${LANG} dictionary" - done -} - - -src_unpack() { - unpack ${A} - - if ${HAS_LANGS} ; then - - linguas - for X in ${linguas}; do - # FIXME: Add support for unpacking xpis to portage - [[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi" - done - if [[ ${linguas} != "" && ${linguas} != "en" ]]; then - einfo "Selected language packs (first will be default): ${linguas}" - fi - -fi - - dicts - for X in ${dicts}; do - # FIXME: Add support for unpacking xpis to portage - xpi_unpack "${MY_D}-${X}.xpi" - done -} - - -pkg_setup() { - - # Ensure we always build with C locale. - export LANG="C" - export LC_ALL="C" - export LC_MESSAGES="C" - export LC_CTYPE="C" - - export BUILD_OFFICIAL=1 - export MOZILLA_OFFICIAL=1 - - java-pkg-opt-2_pkg_setup - - append-ldflags $(no-as-needed) -} - - -src_prepare() { - # Fixes building with libpng14. See Bug #319575 and Bug #323513. - epatch "${FILESDIR}"/seamonkey-libpng14.patch - - java-pkg-opt-2_src_prepare - - eautoreconf -} - - -src_configure() { - declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" - MEXTENSIONS="" - - #################################### - # - # mozconfig, CFLAGS and CXXFLAGS setup - # - #################################### - - mozconfig_init - mozconfig_config - - # seamonkey has issues with >=x11-libs/cairo-1.10.0 (bug #337813). - # If you don't like this blame upstream as they don't care about - # anything than their damned bundled shit!!! - sed '/--enable-system-cairo/s:enable:disable:' -i "${S}"/.mozconfig \ - || die - - # filter a line containing syntax causing mozconfig eclass to fail - sed '/default spellcheck/d' -i "${S}"/.mozconfig - - # It doesn't compile on alpha without this LDFLAGS - use alpha && append-ldflags "-Wl,--no-relax" - - MEXTENSIONS="default,spellcheck,webdav" - if ! use gnome ; then - MEXTENSIONS="${MEXTENSIONS},-gnomevfs" - else MEXTENSIONS="${MEXTENSIONS},gnomevfs" - fi - - mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" - mozconfig_annotate '' --enable-application=composer - mozconfig_annotate '' --enable-default-toolkit=gtk2 - mozconfig_annotate '' --enable-system-myspell - mozconfig_annotate '' --enable-jsd - mozconfig_annotate '' --enable-xterm-updates - mozconfig_annotate '' --enable-pango - mozconfig_annotate '' --enable-image-encoder=all - mozconfig_annotate '' --enable-canvas - mozconfig_annotate '' --with-system-nspr - mozconfig_annotate '' --with-system-nss - mozconfig_annotate '' --enable-oji --enable-mathml - mozconfig_annotate 'places' --enable-storage --enable-places - mozconfig_annotate '' --disable-installer - mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} - - # Enable/Disable based on USE flags - mozconfig_use_enable java javaxpcom - mozconfig_use_enable ldap - mozconfig_use_enable ldap ldap-experimental - - # Finalize and report settings - mozconfig_final - - if [[ $(gcc-major-version) -lt 4 ]]; then - append-cxxflags -fno-stack-protector - fi - - #################################### - # - # Configure and build - # - #################################### - - # Work around breakage in makeopts with --no-print-directory - MAKEOPTS="${MAKEOPTS/--no-print-directory/}" - - CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf -} - - -src_compile() { - # Should the build use multiprocessing? Not enabled by default, as it tends to break. - [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" - emake ${jobs} || die -} - - -src_install() { - declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" - declare emid - - #Dirty Bugfix by unregistr3d (ignore nsModules.o): - cd xpfe/components/ - cp Makefile.in Makefile.in_backup - cat Makefile.in_backup | grep -v build2 > Makefile.in - cd ../.. - - - emake DESTDIR="${D}" install || die "emake install failed" - - linguas - elog "The following language packs will be installed: ${linguas}" - for X in ${linguas}; do - [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${MY_P}-${X}" - done - - dicts - elog "The following dictionaries will be installed: ${dicts}" - for X in ${dicts}; do - xpi_dict_install "${WORKDIR}"/"${MY_D}-${X}" - done - - # Install icon and .desktop for menu entry - newicon "${S}"/composer/app/mozicon256.png kompozer.png - domenu "${FILESDIR}"/kompozer.desktop -} - - -pkg_postinst() { - declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" - - # Update mimedb for the new .desktop file - fdo-mime_desktop_database_update - - elog "This package has a very dirty bugfix!!! If you want to fill" - elog "a Bugreport to the mainstream developers, at least be sure" - elog "to refer to http://bugs.gentoo.org/show_bug.cgi?id=146761#c39 " - elog "Thanks" -} -