#fetch pkg_setup() { java-pkg-2_pkg_setup local fail for directory in "${GEMS}" "${SITE_RUBY}"; do if [[ -L ${directory} ]]; then eerror "${directory} is a symlink. Please remove this symlink." fail="true" fi done if [[ -n ${fail} ]]; then eerror "Unmerging the old jruby version should also fix the problem(s)." die "Please address the above errors, then run emerge --resume" fi } pkg_setup() { java-pkg-2_pkg_setup local fail for directory in "${GEMS}" "${SITE_RUBY}"; do if [[ -L ${directory} ]]; then eerror "${directory} is a symlink. Please remove this symlink." fail="true" fi done if [[ -n ${fail} ]]; then die "Please address the above errors, then run emerge --resume" fi } pkg_setup() { java-pkg-2_pkg_setup local fail if [[ ! -d "${GEMS}" && -L "${GEMS}" ]]; then eerror "${GEMS} is a symlink. Please remove this symlink." fail="true" fi # the symlink creates a collision with rubygems, bug #270953 # cannot be currently solved by removing in pkg_preinst, bug #233278 if [[ -L "${SITE_RUBY}" ]]; then eerror "${SITE_RUBY} is a symlink. Please remove this symlink." fail="true" fi if [[ -n ${fail} ]]; then eerror "Unmerging the old jruby version should also fix the problem(s)." die "Please address the above errors, then run emerge --resume" fi } pkg_setup() { if use nsplugin && ! use npplugin && has_version ">=net-libs/xulrunner-1.9.2"; then eerror "The old plugin will not work with xulrunner >= 1.9.2 / Firefox >= 3.6." die "Rebuild with the npplugin USE flag enabled." fi # quite a hack since java-config does not provide a way for a package # to limit supported VM's for building and their preferred order if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then einfo "Honoring user-set JAVA_PKG_FORCE_VM" elif has_version "dev-java/icedtea:${SLOT}"; then JAVA_PKG_FORCE_VM="icedtea6" elif has_version dev-java/icedtea6; then JAVA_PKG_FORCE_VM="icedtea6" elif has_version dev-java/icedtea6-bin; then JAVA_PKG_FORCE_VM="icedtea6-bin" elif has_version dev-java/gcj-jdk; then JAVA_PKG_FORCE_VM="gcj-jdk" elif has_version dev-java/cacao; then JAVA_PKG_FORCE_VM="cacao" else JAVA_PKG_FORCE_VM="" # don't die just yet if merging a binpkg - bug #258423 DIE_IF_NOT_BINPKG=true fi # if the previous failed, don't even run java eclasses pkg_setup # as it might also die when no VM is present if [[ -n "${JAVA_PKG_FORCE_VM}" ]]; then einfo "Forced vm ${JAVA_PKG_FORCE_VM}" java-vm-2_pkg_setup java-pkg-2_pkg_setup fi VMHANDLE="icedtea${SLOT}" } pkg_setup() { if ! use gmp; then ewarn "You don't have the gmp use flag set." ewarn "Using gmp is the default upstream setting." fi if ! use gtk; then ewarn "" ewarn "The gtk use flag is needed for a awt implementation." ewarn "Don't file bugs for awt not working when you have" ewarn "gtk use flag turned off." fi java-vm-2_pkg_setup } pkg_setup() { if ! use gmp; then ewarn "You don't have the gmp use flag set." ewarn "Using gmp is the default upstream setting." epause 3 fi if ! use gtk; then ewarn "" ewarn "The gtk use flag is needed for a awt implementation." ewarn "Don't file bugs for awt not working when you have" ewarn "gtk use flag turned off." epause 3 fi java-vm-2_pkg_setup } # ~hppa64-hpux ~ia64w-hpux pkg_setup() { java-pkg-2_pkg_setup if use jpeg && java-pkg_current-vm-matches kaffe; then eerror "Sun-private JPEG support cannot be built with kaffe." eerror "Please set your build VM to Sun, Blackdown, IBM or JRockit JDK." eerror "See http://www.gentoo.org/doc/en/java.xml for details." eerror "Alternatively, install this package with USE=-jpeg" die "Cannot build with USE=jpeg and kaffe." fi } pkg_setup() { java-pkg-2_pkg_setup if use jpeg && java-pkg_current-vm-matches kaffe; then eerror "Sun-private JPEG support cannot be built with kaffe." eerror "Please set your build VM to Sun, Blackdown, IBM or JRockit JDK." eerror "See http://www.gentoo.org/doc/en/java.xml for details." eerror "Alternatively, install this package with USE=-jpeg" die "Cannot build with USE=jpeg and kaffe." fi } # junit pkg_setup() { linux-info_pkg_setup java-pkg-2_pkg_setup } # fail because of a missing file # We cannot build tests yet as there is no org.apache.tools.ant.BuildFileTest packaged anywhere yet pkg_setup() { has_version dev-java/eclipse-ecj:3.3 && export HAVE_ECJ=true if [[ ${HAVE_ECJ} ]]; then export JAVAC="/usr/bin/ecj-3.3 -nowarn" else java-pkg-2_pkg_setup fi } pkg_setup() { java-pkg-2_pkg_setup BITS="32" use amd64 && BITS="64" } pkg_setup() { java-pkg-2_pkg_setup BITS="32" use amd64 && BITS="64" } # ppc? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.tar.gz ) # ppc64? ( ftp://ftp.clozure.com/pub/release/${PV}/${MY_P}-linuxppc.tar.gz )" pkg_setup() { if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" eerror "must use gcc-config to select a profile with non-hardened features" eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." die fi ewarn "This is a new ebuild, based on older ones, but with some internal" ewarn "changes. If it fails, please, file a bug without hesitation." } pkg_setup() { if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" eerror "must use gcc-config to select a profile with non-hardened features" eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." die fi } pkg_setup() { if built_with_use sys-devel/gcc hardened && gcc-config -c | grep -qv vanilla; then eerror "So-called \"hardened\" compiler features are incompatible with SBCL. You" eerror "must use gcc-config to select a profile with non-hardened features" eerror "(the \"vanilla\" profile) and \"source /etc/profile\" before continuing." die fi if (use x86 || use amd64) && has_version "=dev-ruby/net-ssh-2.0.14 >=dev-ruby/net-sftp-2.0.2 >=dev-ruby/net-scp-1.0.2 >=dev-ruby/net-ssh-gateway-1.0.0 >=dev-ruby/highline-1.2.7" >=dev-ruby/net-ssh-2.0.14 >=dev-ruby/net-sftp-2.0.2 >=dev-ruby/net-scp-1.0.2 >=dev-ruby/net-ssh-gateway-1.0.0 >=dev-ruby/highline-1.2.7" >=dev-ruby/net-ssh-2.0.14 >=dev-ruby/net-sftp-2.0.2 >=dev-ruby/net-scp-1.0.2 >=dev-ruby/net-ssh-gateway-1.0.0 >=dev-ruby/highline-1.2.7" >=dev-ruby/ruby-glib2-${PV}" >=dev-ruby/rack-1.0.1 =dev-ruby/ruby-glib2-${PV} >=dev-ruby/ruby-pango-${PV} >=dev-ruby/ruby-atk-${PV}" >=dev-ruby/ruby-pango-${PV} >=dev-ruby/ruby-libart2-${PV}" \ ruby_add_bdepend test "dev-ruby/hoe dev-ruby/zentest dev-ruby/fakefs" \ ruby_add_bdepend test "dev-ruby/heckle" # trailing / isn't needed dev-ruby/ruby-glib2 dev-ruby/ruby-gtk2" # doesn't build on ruby19 >=dev-ruby/parsetree-2.0.0 >=dev-ruby/zentest-3.5.2" # Instead of the standard X.Y.Z.preT form, coderay is released as # X.Y.Z.T.pre… since we need something sane for our versioning, we # have to play with it around… sigh! >=dev-ruby/ruby-gtk2-${PV}" \ ruby_add_rdepend ruby_targets_ruby18 =dev-ruby/ruby-debug-base-0.10.3* \ ruby_add_rdepend ruby_targets_jruby =dev-ruby/jruby-debug-base-0.10.3* >=dev-ruby/ruby-libart2-${PV}" =dev-ruby/sexp-processor-3.0* =dev-ruby/ruby_parser-2.0*" >=dev-ruby/ruby-glib2-${PV} >=dev-ruby/ruby-gtk2-${PV}" dev-ruby/diff-lcs" dev-ruby/diff-lcs" dev-ruby/diff-lcs" >=dev-ruby/ruby-gtk2-${PV}" # index_gem_repository.rb # index_gem_repository.rb =dev-ruby/activerecord-2.3*" >=dev-ruby/main-2.8.3 >=dev-ruby/activesupport-2.0.0" # Tests depend on test-unit-2.x which is masked. # Uses hanna which we don't have yet. # Tests depend on test-unit-2.x which is masked. # Uses hanna which we don't have yet. # Tests depend on test-unit-2.x which is masked. # Uses hanna which we don't have yet. # Tests depend on test-unit-2.x which is masked. >=dev-ruby/ruby-pango-${PV} >=dev-ruby/ruby-gtk2-${PV}" >=dev-ruby/ruby-gtk2-${PV} >=dev-ruby/ruby-gnomecanvas2-${PV}" \ ruby_add_rdepend ruby_targets_jruby dev-ruby/jruby-openssl ~dev-ruby/activerecord-${PV} ~dev-ruby/activeresource-${PV} ~dev-ruby/activesupport-${PV} ~dev-ruby/actionmailer-${PV} ~dev-ruby/actionpack-${PV}" ~dev-ruby/activerecord-${PV} ~dev-ruby/activeresource-${PV} ~dev-ruby/activesupport-${PV} ~dev-ruby/actionmailer-${PV} ~dev-ruby/actionpack-${PV}" >=dev-ruby/text-format-0.6.3 >=dev-ruby/tmail-1.2.3" virtual/ruby-test-unit" \ ruby_add_bdepend 'test ruby_targets_jruby' dev-ruby/jruby-openssl \ ruby_add_bdepend 'test ruby_targets_jruby' dev-ruby/jruby-openssl # doc >=dev-ruby/ruby-gdkpixbuf2-${PV}" >=dev-ruby/ruby-glib2-${PV}" pkg_setup() { if ! use swig ; then elog "${PN} will work a lot better with swig; it is suggested" elog "that you install ${PN} with the swig USE flag." ebeep epause 5 fi } >=dev-ruby/rspec-1.2.9" #sqlite ruby_add_rdepend "ruby_targets_ruby18 sqlite3" "dev-ruby/sqlite3-ruby" ruby_add_rdepend "ruby_targets_ruby18 mysql" ">=dev-ruby/mysql-ruby-2.7" ruby_add_rdepend "ruby_targets_ruby18 postgres" "dev-ruby/pg" dev-ruby/builder dev-ruby/mime-types" >=dev-ruby/arrayfields-4.7.4" >=dev-ruby/prawn-layout-${PV} >=dev-ruby/prawn-security-${PV}" =dev-ruby/prawn-layout-$(get_version_component_range 1-2)* =dev-ruby/prawn-security-$(get_version_component_range 1-2)*" >=dev-ruby/shoulda-2.10.3 >=dev-ruby/hoe-2.4.0 virtual/ruby-test-unit" >=dev-ruby/rack-1.0" # truly # truly # truly \ ruby_add_bdepend "test ruby_targets_ruby18" "dev-ruby/rspec dev-util/cucumber dev-ruby/rubygems" # truly dev-ruby/samuel dev-ruby/right_http_connection' # truly # truly # truly # truly # plus exception >=dev-ruby/loquacious-1.4.2 >=dev-ruby/little-plugger-1.1.2 >=dev-ruby/rake-0.8.7" >=dev-ruby/loquacious-1.4.1 >=dev-ruby/little-plugger-1.1.1 >=dev-ruby/rake-0.8.7" \ ruby_add_bdepend doc "dev-ruby/yard" >=dev-ruby/net-scp-1.0.2 >=dev-ruby/net-ssh-2.0.13 >=dev-ruby/highline-1.5.1 >=dev-ruby/sysinfo-0.7.0 dev-ruby/storable dev-ruby/sysinfo dev-ruby/drydock" >=dev-ruby/net-scp-1.0.2 >=dev-ruby/net-ssh-2.0.13 >=dev-ruby/highline-1.5.1 >=dev-ruby/sysinfo-0.7.0 dev-ruby/storable dev-ruby/sysinfo dev-ruby/drydock" pkg_setup() { XFCONF="--disable-dependency-tracking $(use_enable dbus) $(use_enable debug) $(use_enable gstreamer) $(use_enable hal) --disable-thunar-vfs" DOCS="AUTHORS ChangeLog NEWS README TODO" } pkg_setup() { for X in ${IUSE}; do use ${X} && return 0 done eerror "You must enable at least one of these USE flags: ${IUSE}" die "no format, no compile! ;-)" } # testing code is broken # testing code is broken # testing code is broken pkg_setup() { MYFLAGS="PREFIX=/usr" if ! use nls; then MYFLAGS="${MYFLAGS} WITHOUT_NLS=1" fi } pkg_setup() { G2CONF="${G2CONF} --disable-schemas-install --disable-scrollkeeper --disable-caches --disable-dependency-tracking $(use_enable beagle search) $(use_enable cdr cdrtools) $(use_enable cdr cdrkit) $(use_enable libburn libburnia) $(use_enable nautilus) $(use_enable playlist)" if ! use libburn; then G2CONF="${G2CONF} --enable-cdrtools --enable-cdrkit" fi DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README" } pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper --disable-caches --disable-dependency-tracking $(use_enable cdr cdrtools) $(use_enable cdr cdrkit) $(use_enable nautilus) $(use_enable playlist) $(use_enable beagle search) $(use_enable libburn libburnia)" DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README" } pkg_setup() { G2CONF="${G2CONF} --disable-dependency-tracking $(use_enable libnotify)" } pkg_setup() { G2CONF="${G2CONF} $(use_enable flac) $(use_enable mp3) $(use_enable vorbis ogg) $(use_enable debug)" } pkg_setup() { G2CONF="${G2CONF} $(use_enable muine)" DOCS="AUTHORS ChangeLog NEWS README TODO" } pkg_setup() { check_license } pkg_setup() { check_license } pkg_setup() { if use epiphany ; then if has_version '>=www-client/epiphany-2.24.3-r10'; then G2CONF="${G2CONF} --with-gecko=libxul-unstable" else # Now, epiphany could be using xul-1.8, xul-1.9 or ff-2 # Let it auto-detect. : fi fi G2CONF="${G2CONF} --enable-agent --disable-update-mime-database --disable-static $(use_enable applet) $(use_enable debug) $(use_enable epiphany) $(use_enable gedit) $(use_enable libnotify) $(use_enable nautilus) $(use_enable test tests)" } pkg_setup() { if use epiphany ; then if has_version '>=www-client/epiphany-2.24.3-r10'; then G2CONF="${G2CONF} --with-gecko=libxul-unstable" else # Now, epiphany could be using xul-1.8, xul-1.9 or ff-2 # Let it auto-detect. : fi fi G2CONF="${G2CONF} --enable-agent --disable-update-mime-database --disable-static $(use_enable applet) $(use_enable debug) $(use_enable epiphany) $(use_enable gedit) $(use_enable libnotify) $(use_enable nautilus) $(use_enable test tests)" } pkg_setup() { if use epiphany ; then if has_version '>=www-client/epiphany-2.24.3-r10'; then G2CONF="${G2CONF} --with-gecko=libxul-unstable" else # Now, epiphany could be using xul-1.8, xul-1.9 or ff-2 # Let it auto-detect. : fi fi G2CONF="${G2CONF} --enable-agent --disable-update-mime-database --disable-static $(use_enable applet) $(use_enable debug) $(use_enable epiphany) $(use_enable gedit) $(use_enable libnotify) $(use_enable nautilus) $(use_enable test tests)" } pkg_setup() { G2CONF="${G2CONF} --enable-pgp --enable-ssh --enable-pkcs11 --disable-scrollkeeper --disable-update-mime-database --enable-hkp $(use_enable avahi sharing) $(use_enable debug) $(use_enable ldap) $(use_enable libnotify) $(use_enable test tests)" } pkg_setup() { G2CONF="${G2CONF} --enable-pgp --enable-ssh --enable-pkcs11 --disable-static --disable-scrollkeeper --disable-update-mime-database --enable-hkp $(use_enable avahi sharing) $(use_enable debug) $(use_enable ldap) $(use_enable libnotify) $(use_enable test tests)" } pkg_setup() { if ! use dbus ; then if use applet ; then elog elog "The panel applet requires that you build seahorse with DBUS support." elog fi if use gedit ; then elog elog "The GEdit plugin requires that you build seahorse with DBUS support." elog fi if use epiphany ; then elog elog "The epiphany plugin requires that you build seahorse with DBUS support." elog fi eerror "Please add dbus to your USE flags and re-emerge seahorse" eerror "plugins require dbus support" fi if use epiphany ; then if use xulrunner ; then G2CONF="${G2CONF} --with-gecko=xulrunner" else G2CONF="${G2CONF} --with-gecko=firefox" fi fi G2CONF="${G2CONF} --enable-ssh --disable-scrollkeeper --disable-update-mime-database --enable-hkp --with-keyserver --enable-agent $(use_enable applet) $(use_enable avahi sharing) $(use_enable dbus) $(use_enable debug) $(use_enable epiphany) $(use_enable gedit) $(use_enable gnome-keyring) $(use_enable ldap) $(use_enable libnotify) $(use_enable nautilus)" } pkg_setup() { linux-mod_pkg_setup dmcrypt_check kernel_is lt 2 6 5 && die 'requires at least 2.6.5 kernel version' BUILD_PARAMS="KERNEL_SRC=${KERNEL_DIR} NO_WARNINGS=1" BUILD_TARGETS="truecrypt" MODULE_NAMES="truecrypt(block:${S}/Linux/Kernel)" } pkg_setup() { local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO" linux-info_pkg_setup local WX_GTK_VER="2.8" if use X; then need-wxwidgets unicode else need-wxwidgets base-unicode fi } pkg_setup() { local CONFIG_CHECK="~BLK_DEV_DM ~DM_CRYPT ~FUSE_FS ~CRYPTO" linux-info_pkg_setup local WX_GTK_VER="2.8" if use X; then need-wxwidgets unicode else need-wxwidgets base-unicode fi } # yes, truly pkg_setup() { if use kernel_linux && ! use usb && linux_config_exists; then check_extra_config fi } pkg_setup() { # Check for driver (not sure it can be an rdep, because ot depends on the # version of virtual/linux-sources... Is that supported by portage?) linux-info_pkg_setup local tpm_kernel_version tpm_kernel_present tpm_module kernel_is ge 2 6 12 && tpm_kernel_version="yes" linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes" has_version app-crypt/tpm-emulator && tpm_module="yes" if [ -n "${tpm_kernel_present}" ] ; then einfo "Good, you seem to have in-kernel TPM support." elif [ -n "${tpm_module}" ] ; then einfo "Good, you seem to have TPM support with the external module." if [ -n "${tpm_kernel_version}" ] ; then elog elog "Note that since you have a >=2.6.12 kernel, you could use" elog "the in-kernel driver instead of (CONFIG_TCG_TPM)." fi elif [ -n "${tpm_kernel_version}" ] ; then eerror eerror "To use this package, you will have to activate TPM support" eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM," eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)." eerror else eerror eerror "To use this package, you should install a TPM driver." eerror "You can have the following options:" eerror " - install app-crypt/tpm-emulator" eerror " - switch to a >=2.6.12 kernel and compile the kernel module" eerror fi # New user/group for the daemon enewgroup tss enewuser tss -1 -1 /var/lib/tpm tss } pkg_setup() { # Check for driver (not sure it can be an rdep, because ot depends on the # version of virtual/linux-sources... Is that supported by portage?) linux-info_pkg_setup local tpm_kernel_version tpm_kernel_present tpm_module kernel_is ge 2 6 12 && tpm_kernel_version="yes" linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes" has_version app-crypt/tpm-emulator && tpm_module="yes" if [[ -n "${tpm_kernel_present}" ]] ; then einfo "Good, you seem to have in-kernel TPM support." elif [[ -n "${tpm_module}" ]] ; then einfo "Good, you seem to have TPM support with the external module." if [[ -n "${tpm_kernel_version}" ]] ; then elog elog "Note that since you have a >=2.6.12 kernel, you could use" elog "the in-kernel driver instead of (CONFIG_TCG_TPM)." fi elif [[ -n "${tpm_kernel_version}" ]] ; then eerror eerror "To use this package, you will have to activate TPM support" eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM," eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)." eerror else eerror eerror "To use this package, you should install a TPM driver." eerror "You can have the following options:" eerror " - install app-crypt/tpm-emulator" eerror " - switch to a >=2.6.12 kernel and compile the kernel module" eerror fi # New user/group for the daemon enewgroup tss enewuser tss -1 -1 /var/lib/tpm tss } pkg_setup() { # Check for driver (not sure it can be an rdep, because ot depends on the # version of virtual/linux-sources... Is that supported by portage?) linux-info_pkg_setup local tpm_kernel_version tpm_kernel_present tpm_module kernel_is ge 2 6 12 && tpm_kernel_version="yes" linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes" has_version app-crypt/tpm-emulator && tpm_module="yes" if [[ -n "${tpm_kernel_present}" ]] ; then einfo "Good, you seem to have in-kernel TPM support." elif [[ -n "${tpm_module}" ]] ; then einfo "Good, you seem to have TPM support with the external module." if [[ -n "${tpm_kernel_version}" ]] ; then elog elog "Note that since you have a >=2.6.12 kernel, you could use" elog "the in-kernel driver instead of (CONFIG_TCG_TPM)." fi elif [[ -n "${tpm_kernel_version}" ]] ; then eerror eerror "To use this package, you will have to activate TPM support" eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM," eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)." eerror else eerror eerror "To use this package, you should install a TPM driver." eerror "You can have the following options:" eerror " - install app-crypt/tpm-emulator" eerror " - switch to a >=2.6.12 kernel and compile the kernel module" eerror fi # New user/group for the daemon enewgroup tss enewuser tss -1 -1 /var/lib/tpm tss } pkg_setup() { # Check for driver (not sure it can be an rdep, because ot depends on the # version of virtual/linux-sources... Is that supported by portage?) linux-info_pkg_setup local tpm_kernel_version tpm_kernel_present tpm_module kernel_is ge 2 6 12 && tpm_kernel_version="yes" if linux_config_exists; then linux_chkconfig_present TCG_TPM && tpm_kernel_present="yes" else ewarn "No kernel configuration could be found." fi has_version app-crypt/tpm-emulator && tpm_module="yes" if [[ -n "${tpm_kernel_present}" ]] ; then einfo "Good, you seem to have in-kernel TPM support." elif [[ -n "${tpm_module}" ]] ; then einfo "Good, you seem to have TPM support with the external module." if [[ -n "${tpm_kernel_version}" ]] ; then elog elog "Note that since you have a >=2.6.12 kernel, you could use" elog "the in-kernel driver instead of (CONFIG_TCG_TPM)." fi elif [[ -n "${tpm_kernel_version}" ]] ; then eerror eerror "To use this package, you will have to activate TPM support" eerror "in your kernel configuration. That's at least CONFIG_TCG_TPM," eerror "plus probably a chip specific driver (like CONFIG_TCG_ATMEL)." eerror else eerror eerror "To use this package, you should install a TPM driver." eerror "You can have the following options:" eerror " - install app-crypt/tpm-emulator" eerror " - switch to a >=2.6.12 kernel and compile the kernel module" eerror fi # New user/group for the daemon enewgroup tss enewuser tss -1 -1 /var/lib/tpm tss } pkg_setup() { use modules && linux-mod_pkg_setup MODULE_NAMES="tpmd_dev(crypt::${S}/tpmd_dev)" BUILD_TARGETS="all" BUILD_PARAMS="CC=$(tc-getCC)" enewuser tss -1 -1 /var/lib/tpm tss } pkg_setup() { linux-mod_pkg_setup MODULE_NAMES="tpmd_dev(crypt::${S}/tpmd_dev)" BUILD_TARGETS="all" BUILD_PARAMS="CC=$(tc-getCC)" enewuser tss } pkg_setup() { use static && append-ldflags -static if use static && { use gtk || use qt4; }; then ewarn ewarn "The static USE flag is only supported with the ncurses USE flags, disabling the gtk and qt4 USE flags." ewarn fi } pkg_setup() { use static && append-ldflags -static if use static && use gtk; then ewarn ewarn "The static USE flag is only supported with the ncurses USE flags, disabling the gtk USE flag." ewarn fi } pkg_setup() { linux-mod_pkg_setup MODULE_NAMES="bc(block:mod) bc_3des(block:mod:mod/3des) bc_bf128(block:mod:mod/bf128) bc_bf448(block:mod:mod/bf448) bc_blowfish(block:mod:mod/blowfish) bc_cast(block:mod:mod/cast) bc_des(block:mod:mod/des) bc_gost(block:mod:mod/gost) bc_idea(block:mod:mod/idea) bc_rijn(block:mod:mod/rijn) bc_twofish(block:mod:mod/twofish)" BUILD_TARGETS="all" BUILD_PARAMS=" \ CPP=\"$(tc-getCXX)\" \ KERNEL_DIR=\"${KV_DIR}\" \ VER=${KV_MAJOR}.${KV_MINOR} \ KEXT=${KV_OBJ}" } pkg_setup() { linux-mod_pkg_setup MODULE_NAMES="bc(block:"${S}/mod") bc_3des(block:"${S}/mod":mod/3des) bc_bf128(block:"${S}/mod":mod/bf128) bc_bf448(block:"${S}/mod":mod/bf448) bc_blowfish(block:"${S}/mod":mod/blowfish) bc_cast(block:"${S}/mod":mod/cast) bc_des(block:"${S}/mod":mod/des) bc_gost(block:"${S}/mod":mod/gost) bc_idea(block:"${S}/mod":mod/idea) bc_rc6(block:"${S}/mod":mod/rc6) bc_rijn(block:"${S}/mod":mod/rijn) bc_serpent(block:"${S}/mod":mod/serpent) bc_twofish(block:"${S}/mod":mod/twofish)" BUILD_TARGETS="all" BUILD_PARAMS=" \ CPP=\"$(tc-getCXX)\" \ KERNEL_DIR=\"${KV_DIR}\" \ VER=${KV_MAJOR}.${KV_MINOR} \ KEXT=${KV_OBJ}" } pkg_setup() { if cfsd-running; then eerror "It seems that the null directory or CFS root is currently in use." eerror "You must shutdown CFS before merging this port or at least unmount" eerror "the CFS root before using this port." die "cfs is still running!" fi } pkg_setup() { if cfsd-running; then eerror "It seems that the null directory or CFS root is currently in use." eerror "You must shutdown CFS before merging this port or at least unmount" eerror "the CFS root before using this port." die "cfs is still running!" fi } pkg_setup() { if kernel_is gt 2 5; then die "CryptoAPI is only for 2.4 kernels" fi } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) --disable-scrollkeeper" } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) --disable-scrollkeeper" } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) --disable-scrollkeeper" } # has issues right now # prelude?( >=dev-libs/libprelude-0.9 )" pkg_setup() { if use sqlite && use postgres ; then die "You have both sqlite and postgres in USE. Please choose one or the other." fi } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { use gnome || elog "gnome is absent in USE thus applet and editor will not be built" } pkg_setup() { use gnome || elog "gnome is absent in USE thus applet and editor will not be built" } pkg_setup() { if ! built_with_use '>=net-analyzer/rrdtool-1.2' perl ; then eerror "You must build net-analyzer/rrdtool with the" eerror "'perl' USE flag turned on!" die "net-analyzer/rrdtool installed with 'perl' USE flag disabled" fi enewgroup smokeping enewuser smokeping -1 -1 /var/lib/smokeping smokeping } pkg_setup() { if ! built_with_use '>=net-analyzer/rrdtool-1.2' perl ; then eerror "You must build net-analyzer/rrdtool with the" eerror "'perl' USE flag turned on!" die "net-analyzer/rrdtool installed with 'perl' USE flag disabled" fi enewgroup smokeping enewuser smokeping -1 -1 /var/lib/smokeping smokeping } pkg_setup() { enewgroup nagios enewuser nagios -1 /bin/bash /var/nagios/home nagios } pkg_setup() { enewgroup nagios enewuser nagios -1 /bin/bash /var/nagios/home nagios } pkg_setup() { confutils_require_built_with_all sys-devel/libperl ithreads confutils_require_built_with_all dev-lang/perl ithreads confutils_require_built_with_all net-analyzer/net-snmp perl confutils_require_built_with_all net-analyzer/rrdtool perl require_php_sapi_from apache2 cli require_php_with_any_use gd gd-external require_php_with_use mysql posix snmp truetype use ldap && require_php_with_use ldap setup_vars } pkg_setup() { confutils_require_built_with_all sys-devel/libperl ithreads confutils_require_built_with_all dev-lang/perl ithreads confutils_require_built_with_all net-analyzer/net-snmp perl confutils_require_built_with_all net-analyzer/rrdtool perl require_php_sapi_from apache2 cli require_php_with_any_use gd gd-external require_php_with_use mysql posix snmp truetype use ldap && require_php_with_use ldap setup_vars } pkg_setup() { G2CONF="${G2CONF} --disable-deprecations --disable-scrollkeeper" } pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper" } pkg_setup() { if ! use debug; then G2CONF="${G2CONF} --enable-debug=minimum" fi G2CONF="${G2CONF} --disable-deprecations --disable-scrollkeeper" } pkg_setup() { if ! use debug; then G2CONF="${G2CONF} --enable-debug=minimum" fi G2CONF="${G2CONF} --disable-deprecations --disable-scrollkeeper" } pkg_setup() { # Avoid upgrading from Nagios <3 as the directory structure has changed if has_version '>/etc/portage/package.use" eerror "" die "USE flag 'postgres' unsupported in this version :-(" fi if useq oracle; then if [ -z "${ORACLE_HOME}" ]; then eerror eerror "The environment variable ORACLE_HOME must be set" eerror "and point to the correct location." eerror "It looks like you don't have Oracle installed." eerror die "Environment variable ORACLE_HOME is not set" fi if has_version 'dev-db/oracle-instantclient-basic'; then ewarn ewarn "Please ensure you have a full install of the Oracle client." ewarn "dev-db/oracle-instantclient* is NOT sufficient." ewarn fi fi } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { local dbnum dbtypes="mysql postgres oracle" dbtype declare -i dbnum=0 for dbtype in ${dbtypes}; do useq ${dbtype} && let dbnum++ done if [ ${dbnum} -gt 1 ]; then eerror eerror "You can't use more than one database type in Zabbix." eerror "Select exactly one database type out of these: ${dbtypes}" eerror die "Multiple database types selected." elif [ ${dbnum} -lt 1 ]; then eerror eerror "Select exactly one database type out of these: ${dbtypes}" eerror die "No database type selected." fi if useq oracle; then if [ -z "${ORACLE_HOME}" ]; then eerror eerror "The environment variable ORACLE_HOME must be set" eerror "and point to the correct location." eerror "It looks like you don't have Oracle installed." eerror die "Environment variable ORACLE_HOME is not set" fi if has_version 'dev-db/oracle-instantclient-basic'; then ewarn ewarn "Please ensure you have a full install of the Oracle client." ewarn "dev-db/oracle-instantclient* is NOT sufficient." ewarn fi fi enewgroup zabbix enewuser zabbix -1 -1 /var/lib/zabbix/home zabbix } pkg_setup() { enewgroup zabbix enewuser zabbix -1 -1 /dev/null zabbix } pkg_setup() { confutils_require_built_with_all dev-lang/php gd pcre xml zlib } pkg_setup() { myconf=" --disable-stripping $(use_enable ssl openssl) $(use_enable gnutls gnutls)" } # plus OpenSSL exception pkg_setup() { python_pkg_setup python_set_active_version 2 } pkg_setup() { # Check for one for the following use flags to be set. if use gnome; then einfo "USE=\"gnome\" detected." USE_DESTDIR="1" CELESTIA_GUI="gnome" elif use gtk; then einfo "USE=\"gtk\" detected." CELESTIA_GUI="gtk" else ewarn "If you want to use the full gui, set USE=\"{gnome|gtk}\"" ewarn "Defaulting to glut support (no GUI)." CELESTIA_GUI="glut" fi } # emacs" pkg_setup() { check_old_modules } pkg_setup() { check_old_modules } pkg_setup() { check_old_modules } pkg_setup() { check_old_modules } pkg_setup() { # workaround #195017 if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then eerror "Upgrade path is broken with FEATURES=unmerge-orphans" eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" die "Please run: FEATURES=-unmerge-orphans emerge cracklib" fi } pkg_setup() { # workaround #195017 if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then eerror "Upgrade path is broken with FEATURES=unmerge-orphans" eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" die "Please run: FEATURES=-unmerge-orphans emerge cracklib" fi } pkg_setup() { # workaround #195017 if has unmerge-orphans ${FEATURES} && has_version "<${CATEGORY}/${PN}-2.8.10" ; then eerror "Upgrade path is broken with FEATURES=unmerge-orphans" eerror "Please run: FEATURES=-unmerge-orphans emerge cracklib" die "Please run: FEATURES=-unmerge-orphans emerge cracklib" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." die "switching from nls is baaaad" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." die "switching from nls is baaaad" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." die "switching from nls is baaaad" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." die "switching from nls is baaaad" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." die "switching to nls is baaaad" fi } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export UCLIBC_AND_GLIBC="sitting in a tree" export CTARGET=${CHOST%%-*}-pc-linux-uclibc SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-svn-update-${SVN_VER}.patch.bz2" SRC_URI="${SRC_URI} mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2" pkg_setup() { just_headers && return 0 has_version ${CATEGORY}/uclibc || return 0 [[ -n ${UCLIBC_AND_GLIBC} ]] && return 0 [[ ${ROOT} != "/" ]] && return 0 [[ ${CATEGORY} == cross-* ]] && return 0 if use iconv ; then eerror "iconv - bad idea" fi if use nls ; then eerror "nls - even worse idea" fi if use pregen || use userlocales ; then eerror "pregen, userlocales - meaningless without nls" fi if use iconv || use nls || use pregen || use userlocales ; then eerror "compile without nls/gettext support" fi if ! built_with_use --missing false ${CATEGORY}/uclibc nls && use nls && ! use pregen ; then eerror "You previously built uclibc with USE=-nls." eerror "You cannot generate locale data with this" eerror "system. Please rerun emerge with USE=pregen." die "host cannot support locales" elif built_with_use --missing false ${CATEGORY}/uclibc nls && ! use nls ; then eerror "You previously built uclibc with USE=nls." eerror "Rebuilding uClibc with USE=-nls will prob" eerror "destroy your system." fi } # https://savannah.nongnu.org/bugs/?22368 # https://bugs.gentoo.org/273372 # https://savannah.nongnu.org/bugs/?22368 # https://bugs.gentoo.org/273372 #309623 if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export CTARGET=${CHOST%%-*}-pc-linux-newlib && SLOT="${CTARGET}" \ || SLOT="0" if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export CTARGET=${CHOST%%-*}-pc-linux-newlib && SLOT="${CTARGET}" \ || SLOT="0" if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export CTARGET=${CHOST%%-*}-pc-linux-newlib && SLOT="${CTARGET}" \ || SLOT="0" if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export CTARGET=${CHOST%%-*}-pc-linux-newlib && SLOT="${CTARGET}" \ || SLOT="0" if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export CTARGET=${CHOST%%-*}-pc-linux-newlib && SLOT="${CTARGET}" \ || SLOT="0" pkg_setup() { enewgroup utmp 406 } if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.sleepycat.com/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.sleepycat.com/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" export SRC_URI="${SRC_URI} http://www.oracle.com/technology/products/berkeley-db/db/update/${MY_PV}/patch.${MY_PV}.${i}" #~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi #${GLIBC_RELEASE_VER} #${GLIBC_RELEASE_VER} if [[ ${CATEGORY} == *-linux* ]] ; then if [[ ${CATEGORY} == cross-mips* ]] ; then else fi fi pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) if ! is_crosscompile && ! tc-is-cross-compiler ; then if has_version '>'${CATEGORY}/${PF} ; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading glibc is not supported and a sure way to destruction" die "aborting to save your system" fi fi if [[ ${CTARGET} == i386-* ]] ; then eerror "i386 CHOSTs are no longer supported." eerror "Chances are you don't actually want/need i386." eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml" die "please fix your CHOST" fi if use nptlonly && ! use nptl ; then eerror "If you want nptlonly, add nptl to your USE too ;p" die "nptlonly without nptl" fi if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." ewarn "This will result in a 50% performance penalty, which is probably not what you want." fi if ! type -p scanelf > /dev/null ; then eerror "You do not have pax-utils installed." die "install pax-utils" fi use hardened && ! gcc-specs-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" } # we'll handle stripping ourself #46186 # strip ourself #46186 # major glibc version # upstream cvs snaps # pregenerated manpages # pregenerated infopages # Gentoo patchset # glibc version in patchset # version of glibc ports addon # version of libidn addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then if has_version '>'${CATEGORY}/${PF} ; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading glibc is not supported and a sure way to destruction" die "aborting to save your system" fi fi # users have had a chance to phase themselves, time to give em the boot if [[ -e ${ROOT}/etc/locale.gen ]] && [[ -e ${ROOT}/etc/locales.build ]] ; then eerror "You still haven't deleted ${ROOT}/etc/locales.build." eerror "Do so now after making sure ${ROOT}/etc/locale.gen is kosher." die "lazy upgrader detected" fi if [[ ${CTARGET} == i386-* ]] ; then eerror "i386 CHOSTs are no longer supported." eerror "Chances are you don't actually want/need i386." eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml" die "please fix your CHOST" fi if [[ -n ${LT_VER} ]] ; then if use nptlonly && ! use nptl ; then eerror "If you want nptlonly, add nptl to your USE too ;p" die "nptlonly without nptl" fi fi if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." ewarn "This will result in a 50% performance penalty, which is probably not what you want." fi use hardened && ! gcc-specs-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" } # strip ourself #46186 # pregenerated manpages # pregenerated infopages # Gentoo patchset # version of glibc ports addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi # strip ourself #46186 # pregenerated manpages # pregenerated infopages # Gentoo patchset # version of glibc ports addon # version of libidn addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi # strip ourself #46186 # pregenerated manpages # pregenerated infopages # it's integrated into the main tarball now # Gentoo patchset #${RELEASE_VER} # version of glibc ports addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi if [[ ${CATEGORY} == *-linux* ]] ; then if [[ ${CATEGORY} == cross-mips* ]] ; then else fi fi pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) if ! is_crosscompile && ! tc-is-cross-compiler ; then if has_version '>'${CATEGORY}/${PF} ; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading glibc is not supported and a sure way to destruction" die "aborting to save your system" fi fi if [[ ${CTARGET} == i386-* ]] ; then eerror "i386 CHOSTs are no longer supported." eerror "Chances are you don't actually want/need i386." eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml" die "please fix your CHOST" fi if use nptlonly && ! use nptl ; then eerror "If you want nptlonly, add nptl to your USE too ;p" die "nptlonly without nptl" fi if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." ewarn "This will result in a 50% performance penalty, which is probably not what you want." fi if ! type -p scanelf > /dev/null ; then eerror "You do not have pax-utils installed." die "install pax-utils" fi use hardened && ! gcc-specs-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" } # strip ourself #46186 # pregenerated manpages # pregenerated infopages # Gentoo patchset # version of glibc ports addon # version of libidn addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi # strip ourself #46186 # pregenerated manpages # pregenerated infopages # Gentoo patchset # version of glibc ports addon # version of libidn addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then if has_version '>'${CATEGORY}/${PF} ; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading glibc is not supported and a sure way to destruction" die "aborting to save your system" fi # Check for broken kernels #262698 cd "${T}" printf '#include \nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c emake kern-clo-test || die if ! ./kern-clo-test ; then eerror "Your patched vendor kernel is broken. You need to get an" eerror "update from whoever is providing the kernel to you." eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227" die "keeping your system alive, say thank you" fi fi # users have had a chance to phase themselves, time to give em the boot if [[ -e ${ROOT}/etc/locale.gen ]] && [[ -e ${ROOT}/etc/locales.build ]] ; then eerror "You still haven't deleted ${ROOT}/etc/locales.build." eerror "Do so now after making sure ${ROOT}/etc/locale.gen is kosher." die "lazy upgrader detected" fi if [[ ${CTARGET} == i386-* ]] ; then eerror "i386 CHOSTs are no longer supported." eerror "Chances are you don't actually want/need i386." eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml" die "please fix your CHOST" fi if [[ -n ${LT_VER} ]] ; then if use nptlonly && ! use nptl ; then eerror "If you want nptlonly, add nptl to your USE too ;p" die "nptlonly without nptl" fi fi if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." ewarn "This will result in a 50% performance penalty, which is probably not what you want." fi use hardened && ! gcc-specs-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" export LC_ALL=C #252802 } # strip ourself #46186 # pregenerated manpages # pregenerated infopages # it's integrated into the main tarball now # Gentoo patchset # version of glibc ports addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi # strip ourself #46186 # major glibc version # upstream cvs snaps # pregenerated manpages # pregenerated infopages # Gentoo patchset # glibc version in patchset # version of glibc ports addon # version of libidn addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" pkg_setup() { # prevent native builds from downgrading ... maybe update to allow people # to change between diff -r versions ? (2.3.6-r4 -> 2.3.6-r2) if [[ ${ROOT} == "/" ]] && [[ ${CBUILD} == ${CHOST} ]] && [[ ${CHOST} == ${CTARGET} ]] ; then if has_version '>'${CATEGORY}/${PF} ; then eerror "Sanity check to keep you from breaking your system:" eerror " Downgrading glibc is not supported and a sure way to destruction" die "aborting to save your system" fi # Check for broken kernels #262698 cd "${T}" printf '#include \nint main(){return getpwuid(0)==0;}\n' > kern-clo-test.c emake kern-clo-test || die if ! ./kern-clo-test ; then eerror "Your patched vendor kernel is broken. You need to get an" eerror "update from whoever is providing the kernel to you." eerror "http://sourceware.org/bugzilla/show_bug.cgi?id=5227" die "keeping your system alive, say thank you" fi fi # users have had a chance to phase themselves, time to give em the boot if [[ -e ${ROOT}/etc/locale.gen ]] && [[ -e ${ROOT}/etc/locales.build ]] ; then eerror "You still haven't deleted ${ROOT}/etc/locales.build." eerror "Do so now after making sure ${ROOT}/etc/locale.gen is kosher." die "lazy upgrader detected" fi if [[ ${CTARGET} == i386-* ]] ; then eerror "i386 CHOSTs are no longer supported." eerror "Chances are you don't actually want/need i386." eerror "Please read http://www.gentoo.org/doc/en/change-chost.xml" die "please fix your CHOST" fi if [[ -n ${LT_VER} ]] ; then if use nptlonly && ! use nptl ; then eerror "If you want nptlonly, add nptl to your USE too ;p" die "nptlonly without nptl" fi fi if [[ -e /proc/xen ]] && [[ $(tc-arch) == "x86" ]] && ! is-flag -mno-tls-direct-seg-refs ; then ewarn "You are using Xen but don't have -mno-tls-direct-seg-refs in your CFLAGS." ewarn "This will result in a 50% performance penalty, which is probably not what you want." fi use hardened && ! gcc-specs-pie && \ ewarn "PIE hardening not applied, as your compiler doesn't default to PIE" export LC_ALL=C #252802 } # strip ourself #46186 # pregenerated manpages # pregenerated infopages # Gentoo patchset # version of glibc ports addon # version of linuxthreads addon # min kernel version nptl requires if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then export CTARGET=${CATEGORY/cross-} fi # Why SLOT 2.2 you ask yourself while sippin your tea ? # Everyone knows 2.2 > 0, duh. [[ ${CATEGORY} == *-linux* ]] && DEPEND="${DEPEND} ${CATEGORY}/linux-headers" if [[ -e ${e} ]] ; then . "${e}" eval "pkg_${x}() { eblit-run pkg_${x} ; }" fi #122603 pkg_setup() { if use emacs; then # we need at least emacs-22 in order for our emacs patches # to work need_emacs=22 have_emacs=$(elisp-emacs-version) if ! version_is_at_least "${need_emacs}" "${have_emacs}"; then eerror "This package needs at least emacs version ${need_emacs}." eerror "Use \"eselect emacs\" to select the active version." die "Emacs version is too low." fi fi } if [ "${LISP}" = "gcl" ] then else if [ "${LISP}" = "ecl" ] then else fi fi [[ ${LISP} = ${DEF_LISP} ]] && \ DEF_DEP="${DEF_DEP} app-misc/rlwrap" pkg_setup() { LISPS="" for LISP in ${SUPP_LISPS}; do use ${LISP} && LISPS="${LISPS} ${LISP}" done RL="" for LISP in ${SUPP_NORL}; do use ${LISP} && RL="yes" done if [ -z "${LISPS}" ]; then ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" LISPS="${DEF_LISP}" RL="yes" fi } if [ "${LISP}" = "gcl" ] then else if [ "${LISP}" = "ecl" ] then else if [ "${LISP}" = "openmcl" ] then else fi fi fi [[ ${LISP} = ${DEF_LISP} ]] && \ DEF_DEP="${DEF_DEP} app-misc/rlwrap" pkg_setup() { LISPS="" for LISP in ${SUPP_LISPS}; do use ${LISP} && LISPS="${LISPS} ${LISP}" done RL="" for LISP in ${SUPP_NORL}; do use ${LISP} && RL="yes" done if [ -z "${LISPS}" ]; then ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" LISPS="${DEF_LISP}" RL="yes" fi } if [ "${LISP}" = "gcl" ] then else fi [[ ${LISP} = ${DEF_LISP} ]] && \ DEF_DEP="${DEF_DEP} app-misc/rlwrap" pkg_setup() { LISPS="" for LISP in ${SUPP_LISPS}; do use ${LISP} && LISPS="${LISPS} ${LISP}" done RL="" for LISP in ${SUPP_NORL}; do use ${LISP} && RL="yes" done if [ -z "${LISPS}" ]; then ewarn "No lisp specified in USE flags, choosing ${DEF_LISP} as default" LISPS="${DEF_LISP}" RL="yes" fi } if [ "${DEP}" = "." ]; then else fi if [ "${DEP}" = "." ]; then else fi pkg_setup() { java-pkg-opt-2_pkg_setup need_fortran gfortran g77 } pkg_setup() { if ! use gtk && ! use tk; then echo eerror 'scilab must be built with either USE="gtk" or USE="tk"' die fi java-pkg-opt-2_pkg_setup need_fortran gfortran g77 } pkg_setup() { java-pkg-opt-2_pkg_setup need_fortran gfortran g77 } pkg_setup() { # for 2.6.25 kernels and higher we need to have # /proc/sys/kernel/randomize_va_space set to somthing other # than 2, otherwise gcl fails to compile (see bug #186926). local current_setting=$(/sbin/sysctl kernel.randomize_va_space 2>/dev/null | cut -d' ' -f3) if [[ ${current_setting} == 2 ]]; then echo eerror "Your kernel has brk randomization enabled. This will" eerror "cause axiom to fail to compile *and* run (see bug #186926)." eerror "You can issue:" eerror eerror " /sbin/sysctl -w kernel.randomize_va_space=1" eerror eerror "as root to turn brk randomization off temporarily." eerror "However, when not using axiom you may want to turn" eerror "brk randomization back on via" eerror eerror " /sbin/sysctl -w kernel.randomize_va_space=2" eerror eerror "since it results in a less secure kernel." die "Kernel brk randomization detected" fi } pkg_setup() { linux-info_pkg_setup if use amd64 && ! linux_chkconfig_present COMPAT_BINFMT_ELF ; then ewarn "This ebuild installs a statically linked 32-bit ELF binary." ewarn "You need to enable CONFIG_COMPAT_BINFMT_ELF in your kernel" ewarn "in order for it to be usable." die "missing CONFIG_COMPAT_BINFMT_ELF" fi } pkg_setup() { games_pkg_setup # x86 binary package, ABI=x86 has_multilib_profile && ABI="x86" } pkg_setup() { games_pkg_setup # x86 binary package, ABI=x86 has_multilib_profile && ABI="x86" } # has been changed since 1.5 #custom, LPPL-like pkg_setup() { if (use overview) && (! use gui); then die "the overview plugin requires the USE='gui'" fi } pkg_setup() { if use fortran; then FORTRAN="gfortran g77 ifc" fortran_pkg_setup fi } # it only looks like there's a test there #77507 pkg_setup() { # Check the license if [[ -z ${IPP_LICENSE} ]]; then IPP_LICENSE="$(grep -ls PerfPrim ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" IPP_LICENSE=${IPP_LICENSE/${ROOT}/} fi if [[ -z ${IPP_LICENSE} ]]; then eerror "Did not find any valid ipp license." eerror "Register at ${HOMEPAGE} to receive a license" eerror "and place it in ${INTEL_LIC_DIR} or run:" eerror "export IPP_LICENSE=/my/license/file emerge ipp" die "license setup failed" fi local disq_req IPP_ARCH= if use amd64; then IPP_ARCH="em64t" disk_req="800" elif use x86; then IPP_ARCH="ia32" disk_req="600" elif use ia64; then IPP_ARCH="ia64" disk_req="700" fi einfo "IPP_LICENSE=${IPP_LICENSE}" einfo "IPP_ARCH=${IPP_ARCH}" # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { # Check the license if [[ -z ${IPP_LICENSE} ]]; then IPP_LICENSE="$(grep -ls PerfPrim ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" IPP_LICENSE=${IPP_LICENSE/${ROOT}/} fi if [[ -z ${IPP_LICENSE} ]]; then eerror "Did not find any valid ipp license." eerror "Register at ${HOMEPAGE} to receive a license" eerror "and place it in ${INTEL_LIC_DIR} or run:" eerror "export IPP_LICENSE=/my/license/file emerge ipp" die "license setup failed" fi local disq_req IPP_ARCH= if use amd64; then IPP_ARCH="em64t" disk_req="800" elif use x86; then IPP_ARCH="ia32" disk_req="600" elif use ia64; then IPP_ARCH="ia64" disk_req="700" fi einfo "IPP_LICENSE=${IPP_LICENSE}" einfo "IPP_ARCH=${IPP_ARCH}" # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { # Check the license if [[ -z ${IPP_LICENSE} ]]; then IPP_LICENSE="$(grep -ls PerfPrim ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" IPP_LICENSE=${IPP_LICENSE/${ROOT}/} fi if [[ -z ${IPP_LICENSE} ]]; then eerror "Did not find any valid ipp license." eerror "Register at ${HOMEPAGE} to receive a license" eerror "and place it in ${INTEL_LIC_DIR} or run:" eerror "export IPP_LICENSE=/my/license/file emerge ipp" die "license setup failed" fi local disq_req IPP_ARCH= if use amd64; then IPP_ARCH="em64t" disk_req="800" elif use x86; then IPP_ARCH="ia32" disk_req="600" elif use ia64; then IPP_ARCH="ia64" disk_req="700" fi einfo "IPP_LICENSE=${IPP_LICENSE}" einfo "IPP_ARCH=${IPP_ARCH}" # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { use sparc && append-cppflags "-DNO_ASM" use hppa && append-cppflags "-DNO_ASM" } [[ -n ${UPDATE} ]] && SRC_URI="${SRC_URI} ${SRC}/${PV}/updates/${P}-src-patch-${UPDATE}.tar.gz" [[ -n ${PATCHDATE} ]] && SRC_URI="${SRC_URI} http://dev.gentooexperimental.org/~jlec/science-dist/${PV}-${PATCHDATE}-updates.patch.bz2" [[ -n ${UPDATE} ]] && SRC_URI="${SRC_URI} ${SRC}/${PV}/updates/${P}-src-patch-${UPDATE}.tar.gz" [[ -n ${PATCHDATE} ]] && SRC_URI="${SRC_URI} http://dev.gentooexperimental.org/~jlec/science-dist/${PV}-${PATCHDATE}-updates.patch.bz2" pkg_setup() { FORTRAN="gfortran" use ifc && FORTRAN="ifc" fortran_pkg_setup if [[ ${FORTRANC} == gfortran ]]; then local gcc_version=$(gcc-major-version)$(gcc-minor-version) if ! use openmp && (( ${gcc_version} != 41 )); then eerror "You need gcc-4.1.x to test acml." eerror "Please use gcc-config to swicth gcc version 4.1.x" die "setup gcc failed" elif use openmp && (( ${gcc_version} != 42 )); then eerror "You need gfortran >= 4.2 to use openmp features." eerror "Please use gcc-config to switch gcc version >= 4.2" die "setup gcc failed" fi fi } pkg_setup() { elog "From version 3.5.0 on, ACML no longer supports" elog "hardware without SSE/SSE2 instructions. " elog "For older 32-bit without SSE/SSE2, use other blas/lapack libraries," elog "or file a bug if you wish to have earlier ACML versions supported." FORTRAN="gfortran" fortran_pkg_setup if [[ ${FORTRANC} == gfortran ]]; then local gcc_version=$(gcc-major-version)$(gcc-minor-version) if ! use openmp && (( ${gcc_version} != 41 )); then eerror "You need gcc-4.1.x to test acml." eerror "Please use gcc-config to swicth gcc version 4.1.x" die "setup gcc failed" elif use openmp && (( ${gcc_version} != 42 )); then eerror "You need gfortran >= 4.2 to use openmp features." eerror "Please use gcc-config to switch gcc version >= 4.2" die "setup gcc failed" fi fi } pkg_setup() { FORTRAN="" if use test; then use gfortran && FORTRAN="${FORTRAN} gfortran" use ifc && FORTRAN="${FORTRAN} ifc" use gfortran || use ifc || FORTRAN="gfortran" fortran_pkg_setup # work around incomplete fortran eclass if use gfortran && [[ ${FORTRANC} == gfortran ]] && [[ $(gcc-version) != 4.2 ]] then eerror "You need gfortran-4.2 to test acml" eerror "Please use gcc-config to switch gcc version 4.2" die "gfortran check failed" fi fi # construct default profile dprof from default ddir local ddir=gfortran use ifc && ddir=ifort use x86 && ddir=${ddir}32 || ddir=${ddir}64 use openmp && ddir=${ddir}_mp use int64 && ddir=${ddir}_int64 ACML_DEFAULT_DIR=${ddir} } pkg_setup() { elog "From version 3.5.0 on, ACML no longer supports" elog "hardware without SSE/SSE2 instructions. " elog "For older 32-bit without SSE/SSE2, use other blas/lapack libraries," elog "or file a bug if you wish to have earlier ACML versions supported." epause FORTRAN=ifc FORT=ifort ! use ifc && ! use openmp && FORTRAN=g77 && FORT=gnu fortran_pkg_setup } pkg_setup() { # scipy automatically detects libraries by default export {FFTW,FFTW3,UMFPACK}=None use umfpack && unset UMFPACK # the missing symbols are in -lpythonX.Y, but since the version can # differ, we just introduce the same scaryness as on Linux/ELF [[ ${CHOST} == *-darwin* ]] \ && append-ldflags -bundle "-undefined dynamic_lookup" \ || append-ldflags -shared [[ -z ${FC} ]] && export FC=$(tc-getFC) # hack to force F77 to be FC until bug #278772 is fixed [[ -z ${F77} ]] && export F77=$(tc-getFC) export SCIPY_FCONFIG="config_fc --noopt --noarch" } pkg_setup() { if use fortran; then fortran_pkg_setup case "${FORTRANC}" in # probably needs more compilers here, of which I have # none, so feel free to provide flags for others... g77) export FCLAGS+="-finit-local-zero -fno-automatic \ -fno-second-underscore -std=legacy -ff2c \ -fall-intrinsics -static-libgfortran" ;; *) export FCLAGS+="-finit-local-zero -fno-automatic \ -fno-second-underscore -std=gnu \ -fall-intrinsics -static-libgfortran" ;; esac else export FC="" fi if use full-test; then if [ -n "${DAP_TEST_OPTS}" ]; then elog "User-specified test URL is ${DAP_TEST_OPTS}." else elog "User-specified test URL is not set; if needed, set" elog "DAP_TEST_OPTS to a URL of your choice and rebuild." fi elog elog "The full regression test does two passes, the second one with" elog "remote data queries. The latter part can take several hours," elog "so hit Ctl-C now and set USE=-full-test if you'd rather not." epause 10 fi } pkg_setup() { # Check the license if [[ -z ${MKL_LICENSE} ]]; then MKL_LICENSE="$(grep -ls MKern ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" MKL_LICENSE=${MKL_LICENSE/${ROOT}/} fi if [[ -z ${MKL_LICENSE} ]]; then eerror "Did not find any valid mkl license." eerror "Register at ${HOMEPAGE} to receive a license" eerror "and place it in ${INTEL_LIC_DIR} or run:" eerror "export MKL_LICENSE=/my/license/file emerge mkl" die "license setup failed" fi # Check if we have enough free diskspace to install CHECKREQS_DISK_BUILD="1100" check_reqs # Check and setup fortran FORTRAN="gfortran ifc g77" use int64 && FORTRAN="gfortran ifc" if use fortran95; then FORTRAN="gfortran ifc" # blas95 and lapack95 don't compile with gfortran < 4.2 [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] && FORTRAN="ifc" fi fortran_pkg_setup MKL_FC="gnu" [[ ${FORTRANC} == if* ]] && MKL_FC="intel" # build profiles according to what compiler is installed MKL_CC="gnu" [[ $(tc-getCC) == icc ]] && MKL_CC="intel" if has_version sys-cluster/mpich; then MKL_MPI=mpich elif has_version sys-cluster/mpich2; then MKL_MPI=mpich2 elif has_version sys-cluster/openmpi; then MKL_MPI=openmpi elif has_version sys-cluster/lam-mpi; then MKL_MPI=lam-mpi else MKL_MPI=intelmpi fi } pkg_setup() { # Check the license if [[ -z ${MKL_LICENSE} ]]; then MKL_LICENSE="$(grep -ls MKern ${ROOT}${INTEL_LIC_DIR}/* | tail -n 1)" MKL_LICENSE=${MKL_LICENSE/${ROOT}/} fi if [[ -z ${MKL_LICENSE} ]]; then eerror "Did not find any valid mkl license." eerror "Register at ${HOMEPAGE} to receive a license" eerror "and place it in ${INTEL_LIC_DIR} or run:" eerror "export MKL_LICENSE=/my/license/file emerge mkl" die "license setup failed" fi # Check if we have enough free diskspace to install CHECKREQS_DISK_BUILD="1100" check_reqs # Check and setup fortran FORTRAN="gfortran ifc g77" use int64 && FORTRAN="gfortran ifc" if use fortran95; then FORTRAN="gfortran ifc" # blas95 and lapack95 don't compile with gfortran < 4.2 [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] && FORTRAN="ifc" fi fortran_pkg_setup MKL_FC="gnu" [[ ${FORTRANC} == if* ]] && MKL_FC="intel" # build profiles according to what compiler is installed MKL_CC="gnu" [[ $(tc-getCC) == icc ]] && MKL_CC="intel" if has_version sys-cluster/mpich; then MKL_MPI=mpich elif has_version sys-cluster/mpich2; then MKL_MPI=mpich2 elif has_version sys-cluster/openmpi; then MKL_MPI=openmpi elif has_version sys-cluster/lam-mpi; then MKL_MPI=lam-mpi else MKL_MPI=intelmpi fi } pkg_setup() { # setting up license [[ -z ${MKL_LICENSE} && -d /opt/intel/licenses ]] && \ MKL_LICENSE=$(find /opt/intel/licenses -name *MKL*.lic) if [[ -z ${MKL_LICENSE} ]]; then eerror "Did not find any valid mkl license." eerror "Please locate your license file and run:" eerror "\t MKL_LICENSE=/my/license/dir emerge ${PN}" eerror "or place your license in /opt/intel/licenses" eerror "Hint: the license file is in the email Intel sent you" die "setup mkl license failed" fi # setting up compilers MKL_CC=gnu [[ $(tc-getCC) == icc ]] && MKL_CC=icc FORTRAN="gfortran ifc g77" use fortran95 && FORTRAN="gfortran ifc" use int64 && FORTRAN="gfortran ifc" fortran_pkg_setup } pkg_setup() { if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi elog elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" elog "source /usr/$(get_libdir)/${MY_PN}/bashrc" ewarn ewarn "FoamX is deprecated since ${MY_PN}-1.5! " ewarn } pkg_setup() { # just to be sure the right profile is selected (gcc-config) if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi elog elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" elog elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'" elog elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})" ewarn ewarn "FoamX is deprecated since ${MY_PN}-1.5! " ewarn } pkg_setup() { FORTRAN="g77 gfortran ifc" fortran_pkg_setup if [[ ${FORTRANC} == if* ]]; then ewarn "Using Intel Fortran at your own risk" LDFLAGS="$(raw-ldflags)" fi ESELECT_PROF=reference } pkg_setup() { FORTRAN="g77 gfortran ifc" fortran_pkg_setup if [[ ${FORTRANC} == if* ]]; then ewarn "Using Intel Fortran at your own risk" LDFLAGS="$(raw-ldflags)" fi ESELECT_PROF=reference } pkg_setup() { # lapack can only be used in conjunction with blas if use lapack && ! use blas; then die "USE=lapack requires USE=blas to be set" fi } pkg_setup() { # lapack can only be used in conjunction with blas if use lapack && ! use blas; then die "USE=lapack requires USE=blas to be set" fi } pkg_setup() { # lapack can only be used in conjunction with blas if use lapack && ! use blas; then die "USE=lapack requires USE=blas to be set" fi } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo epause 10 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo ewarn "If blas-atlas fails during linking with a message" ewarn "'relocation R_X86_64_32 .... recompile with -fPIC.'" ewarn "please re-emerge libtool and then try again." echo epause 5 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo ewarn "If blas-atlas fails during linking with a message" ewarn "'relocation R_X86_64_32 .... recompile with -fPIC.'" ewarn "please re-emerge libtool and then try again." echo epause 5 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo epause 10 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo epause 10 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo ewarn "If blas-atlas fails during linking with a message" ewarn "'relocation R_X86_64_32 .... recompile with -fPIC.'" ewarn "please re-emerge libtool and then try again." echo epause 5 } pkg_setup() { # icc won't compile (as of icc-10.0.026) # and will blow out $PORTAGE_TMPDIR if [[ $(tc-getCC) = icc* ]]; then eerror "icc compiler is not supported with sci-libs/blas-atlas" die "blas-atlas won't compile with icc" fi FORTRAN="g77 gfortran ifc" fortran_pkg_setup echo ewarn "Please make sure to disable CPU throttling completely" ewarn "during the compile of blas-atlas. Otherwise, all atlas" ewarn "generated timings will be completely random and the" ewarn "performance of the resulting libraries will be degraded" ewarn "considerably." echo ewarn "For users of <=gcc-4.1 only:" ewarn "If you experience failing SANITY tests during" ewarn "atlas' compile please try passing -mfpmath=387; this" ewarn "option might also result in much better performance" ewarn "than using then sse instruction set depending on your" ewarn "CPU." echo ewarn "If blas-atlas fails during linking with a message" ewarn "'relocation R_X86_64_32 .... recompile with -fPIC.'" ewarn "please re-emerge libtool and then try again." echo } pkg_setup() { FORTRAN="gfortran g77 ifc ifort pgf77 pgf90" fortran_pkg_setup case "${FORTRANC}" in gfortran) export CNAME="_gfortran" ;; g77) export CNAME="_gnu" ;; pgf90|pgf77) export CNAME="_linux" ;; ifc|ifort) export CNAME="_intel" ;; esac export target="linux" case "${ARCH}" in amd64|ppc64) export A64="A64" export R64="R64" ;; ia64) export A64="" export R64="R64" export target="itanium" ;; hppa) export target="hppa" export R64="" ;; *) export A64="" export R64="" ;; esac } pkg_setup() { # just to be sure the right profile is selected (gcc-config) if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi elog elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" elog "source /usr/$(get_libdir)/${MY_PN}/bashrc" ewarn ewarn "FoamX is deprecated since ${MY_PN}-1.5! " ewarn } pkg_setup(){ export CC=mpicc } pkg_setup() { # just to be sure the right profile is selected (gcc-config) if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi } pkg_setup() { # this one is reported to cause trouble on pentium4 m series filter-mfpmath "sse" # here I need (surprise) to increase optimization: # --enable-i386-hacks requires -fomit-frame-pointer to work properly if use x86; then is-flag "-fomit-frame-pointer" || append-flags "-fomit-frame-pointer" fi if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || ! built_with_use sys-devel/gcc openmp ) ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 " ewarn "If you want to build fftw with OpenMP, abort now," ewarn "and switch CC to an OpenMP capable compiler" ewarn "Otherwise the configure script will select POSIX threads." epause 5 fi use openmp && [[ $(tc-getCC)$ == icc* ]] && append-ldflags $(no-as-needed) } pkg_setup() { FFTW_THREADS="--disable-threads --disable-openmp" if use openmp; then FFTW_THREADS="--disable-threads --enable-openmp" elif use threads; then FFTW_THREADS="--enable-threads --disable-openmp" fi if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && [[ $(tc-getCC)$ != *apple* ]] && ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || ! built_with_use sys-devel/gcc openmp ) then ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 " ewarn "If you want to build fftw with OpenMP, abort now," ewarn "and switch CC to an OpenMP capable compiler" ewarn "Otherwise, we will build using POSIX threads." epause 5 FFTW_THREADS="--enable-threads --disable-openmp" fi FFTW_DIRS="single double longdouble" use openmp && [[ $(tc-getCC)$ == icc* ]] && append-ldflags $(no-as-needed) } pkg_setup() { if has_version ">=dev-scheme/guile-1.8" ; then built_with_use "dev-scheme/guile" deprecated \ || die "You need either =dev-scheme/guile-1.8 with USE=deprecated" fi if use gd ; then built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png" fi } pkg_setup() { if has_version ">=dev-scheme/guile-1.8" ; then built_with_use "dev-scheme/guile" deprecated \ || die "You need either =dev-scheme/guile-1.8 with USE=deprecated" fi if use gd ; then built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png" fi } pkg_setup() { if has_version ">=dev-scheme/guile-1.8" ; then built_with_use "dev-scheme/guile" deprecated \ || die "You need either =dev-scheme/guile-1.8 with USE=deprecated" fi if use gd ; then built_with_use media-libs/gd png || die "media-libs/gd must be compiled with USE=png" fi } pkg_setup() { echo einfo "Please note that the VTK build occasionally fails when" einfo "using parallel make. Hence, if you experience a build" einfo "failure please try re-emerging with MAKEOPTS=\"-j1\" first." echo epause 5 java-pkg-opt-2_pkg_setup if use qt4; then qt4_pkg_setup fi } pkg_setup() { echo einfo "Please note that the VTK build occasionally fails when" einfo "using parallel make. Hence, if you experience a build" einfo "failure please try re-emerging with MAKEOPTS=\"-j1\" first." echo epause 5 java-pkg-opt-2_pkg_setup if use qt4; then qt4_pkg_setup fi } pkg_setup() { if has test ${FEATURES} && use mpi ; then elog "" elog "Parallel tests will launch 3 mpd processes on this box," elog "so it may take some time on a slow machine (only a few" elog "minutes on a reasonably fast machine). Hit Ctl-C now" elog "and emerge with FEATURES=-test if you'd rather not..." elog "" epause 9 fi # The above gcc dep is a hack to insure at least one Fortran 90 # compiler is installed if the user enables fortran support. Feel # free to improve it... if use fortran ; then fortran_pkg_setup case "${FORTRANC}" in gfortran|ifc|ifort|f95|pgf90) export F9X="${FORTRANC}" ;; g77|f77|f2c) export F9X="" ;; esac fi # if anyone knows of a better way to do this... if use mpi && ! built_with_use sys-cluster/mpich2 pvfs2 ; then ewarn "Your MPI library needs parallel IO support for HDF5. You" ewarn "must re-emerge mpich2 with USE=pvfs2." die "requires parallel IO support" fi } pkg_setup() { if use mpi; then if has_version 'sci-libs/hdf5[-mpi]'; then ewarn "Installing hdf5 with mpi enabled with a previous hdf5 with mpi disabled may fail." ewarn "Try to uninstall the current hdf5 prior to enabling mpi support." fi if use cxx; then ewarn "Simultaneous mpi and cxx is not supported by ${PN}" ewarn "Will disable cxx interface" fi export CC=mpicc if use fortran; then export FC=mpif90 fi elif has_version 'sci-libs/hdf5[mpi]'; then ewarn "Installing hdf5 with mpi disabled while having hdf5 installed with mpi enabled may fail." ewarn "Try to uninstall the current hdf5 prior to disabling mpi support." fi } pkg_setup() { # The above gcc dep is a hack to insure at least one Fortran 90 # compiler is installed if the user enables fortran support. Feel # free to improve it... if use fortran ; then if [ $(gcc-major-version) -ge 4 ] \ && built_with_use sys-devel/gcc fortran ; then FORTRAN="gfortran" fortran_pkg_setup einfo "Configuring for GNU fortran..." elif test -d /opt/intel/fortran90 ; then FORTRAN="ifc" fortran_pkg_setup einfo "Configuring for Intel fortran..." elif use f90 ; then einfo "Relying on H5Detect to configure Fortran compiler..." FORTRAN="" else einfo "No F90 compiler found; please install either gcc 4 with" einfo "fortran support or some other Fortran 90 compiler such" einfo "as ifc or pgf90 (or disable fortran support)." die "No usable Fortran 90 compiler found." fi fi } pkg_setup() { if use mpi; then if use cxx; then ewarn "Simultaneous mpi and cxx is not supported by ${PN}" ewarn "Will disable cxx interface" fi export CC=mpicc use fortran && export FC=mpif90 fi } pkg_setup() { if has test ${FEATURES} && use mpi ; then elog "" elog "Parallel tests will launch 3 mpd processes on this box," elog "so it may take some time on a slow machine (only a few" elog "minutes on a reasonably fast machine). Hit Ctl-C now" elog "and emerge with FEATURES=-test if you'd rather not..." elog "" epause 9 fi # The above gcc dep is a hack to insure at least one Fortran 90 # compiler is installed if the user enables fortran support. Feel # free to improve it... if use fortran ; then fortran_pkg_setup case "${FORTRANC}" in gfortran|ifc|ifort|f95|pgf90) export F9X="${FORTRANC}" ;; g77|f77|f2c) export F9X="" ;; esac fi # if anyone knows of a better way to do this... if use mpi && ! built_with_use sys-cluster/mpich2 pvfs2 ; then ewarn "Your MPI library needs parallel IO support for HDF5. You" ewarn "must re-emerge mpich2 with USE=pvfs2." die "requires parallel IO support" fi } pkg_setup() { ESELECT_PROF="gsl" # prevent to use external cblas from a previously installed gsl local current_lib=$(eselect cblas show | cut -d' ' -f2) if use cblas && [[ ${current_lib} == gsl ]]; then ewarn "USE flag cblas is set: linking gsl with an external cblas." ewarn "However the current selected external cblas is gsl." ewarn "Please install and/or eselect another cblas" die "Circular gsl dependency" fi } pkg_setup() { ESELECT_PROF="gsl" # prevent to use external cblas from a previously installed gsl local current_lib=$(eselect cblas show | cut -d' ' -f2) if use cblas && [[ ${current_lib} == gsl ]]; then ewarn "USE flag cblas is set: linking gsl with an external cblas." ewarn "However the current selected external cblas is gsl." ewarn "Please install and/or eselect another cblas" die "Circular gsl dependency" fi } pkg_setup() { # icc-10.0.025 did not pass some tests if [[ $(tc-getCC) == icc ]]; then eerror "icc known to fail tests. Revert to safer gcc and re-emerge." die "gsl does not work when compiled with icc" fi } pkg_setup() { ESELECT_PROF="gsl" # prevent to use external cblas from a previously installed gsl local current_lib=$(eselect cblas show | cut -d' ' -f2) if use cblas && [[ ${current_lib} == gsl ]]; then ewarn "USE flag cblas is set: linking gsl with an external cblas." ewarn "However the current selected external cblas is gsl." ewarn "Please install and/or eselect another cblas" die "Circular gsl dependency" fi } pkg_setup() { ESELECT_PROF="gsl" # prevent to use external cblas from a previously installed gsl local current_lib=$(eselect cblas show | cut -d' ' -f2) if use cblas && [[ ${current_lib} == gsl ]]; then ewarn "USE flag cblas is set: linking gsl with an external cblas." ewarn "However the current selected external cblas is gsl." ewarn "Please install and/or eselect another cblas" die "Circular gsl dependency" fi } pkg_setup() { if use hdf5 && has_version sci-libs/hdf5[mpi]; then export CC=mpicc if use cxx; then export CXX=mpicxx fi if use fortran; then export FC=mpif90 export F77=mpif77 fi fi } pkg_setup() { if use fortran ; then FORTRAN="gfortran ifc g77 pgf77 pgf90" fortran_pkg_setup fi } pkg_setup() { # just to be sure the right profile is selected (gcc-config) if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi } pkg_setup() { if use fortran; then export FC=$(tc-getFC) F77=$(tc-getF77) else export FC="" F77="" fi } pkg_setup() { if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || ! built_with_use sys-devel/gcc openmp ) then ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 " ewarn "If you want to build ${PN} with OpenMP, abort now," ewarn "and switch CC to an OpenMP capable compiler" fi python_set_active_version 2 } pkg_setup() { if use openmp \ && [[ $(tc-getCC) == *gcc ]] \ && [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]]; then eerror "You need gcc >= 4.2 to use openmp features." eerror "Please use gcc-config to switch gcc version >= 4.2" die "setup gcc failed" fi } pkg_setup() { # just to be sure the right profile is selected (gcc-config) if ! version_is_at_least 4.1 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.1 to compile." fi } pkg_setup() { FORTRAN="g77 gfortran ifc" fortran_pkg_setup if [[ ${FORTRANC} == if* ]]; then ewarn "Using Intel Fortran at your own risk" export LDFLAGS="$(raw-ldflags)" export NOOPT_FFLAGS=-O fi ESELECT_PROF=reference } pkg_setup() { FORTRAN="g77 gfortran ifc" fortran_pkg_setup if [[ ${FORTRANC} == if* ]]; then ewarn "Using Intel Fortran at your own risk" export LDFLAGS="$(raw-ldflags)" export NOOPT_FFLAGS=-O fi ESELECT_PROF=reference } pkg_setup() { FORTRAN="g77 gfortran ifc" fortran_pkg_setup if [[ ${FORTRANC} == if* ]]; then ewarn "Using Intel Fortran at your own risk" export LDFLAGS="$(raw-ldflags)" export NOOPT_FFLAGS=-O fi ESELECT_PROF=reference } pkg_setup() { if ! version_is_at_least "4.3.0" "$(gcc-version)"; then eerror "You need >=gcc-4.3.0 to compile this package" die "Wrong gcc version" fi if use hdf5 && has_version sci-libs/hdf5[mpi]; then export CC=mpicc export CXX=mpicxx fi } pkg_setup() { if ! version_is_at_least "4.3.0" "$(gcc-version)"; then eerror "You need >=gcc-4.3.0 to compile this package" die "Wrong gcc version" fi if use hdf5 && has_version sci-libs/hdf5[mpi]; then export CC=mpicc export CXX=mpicxx fi } pkg_setup() { if use openmp && [[ $(tc-getCXX)$ == *g++* ]] && \ ! built_with_use sys-devel/gcc openmp; then ewarn "You are using gcc built without openmp" ewarn "Switch CXX to an OpenMP capable compiler" die "Need openmp" fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi python_set_active_version 2 } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi if useq hdf; then einfo "Checking if HDF4 is compiled with szip..." if built_with_use sci-libs/hdf szip ; then einfo "Found HDF4 compiled with szip. Nice." else ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!" einfo "Please emerge hdf with szip USE flag and then emerge GDAL." die "HDF4 not merged with szip use flag" fi if useq netcdf; then ewarn "Netcdf and HDF4 are incompatible due to certain tools in" ewarn "common; HDF5 is now the preferred choice for HDF data." die "Please disable either the hdf or netcdf use flag." fi fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi if useq hdf; then einfo "Checking if HDF4 is compiled with szip..." if built_with_use sci-libs/hdf szip ; then einfo "Found HDF4 compiled with szip. Nice." else ewarn "HDF4 (sci-libs/hdf) must be compiled with the szip USE flag!" einfo "Please emerge hdf with szip USE flag and then emerge GDAL." die "HDF4 not merged with szip use flag" fi if useq netcdf; then ewarn "Netcdf and HDF4 are incompatible due to certain tools in" ewarn "common; HDF5 is now the preferred choice for HDF data." die "Please disable either the hdf or netcdf use flag." fi fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi } pkg_setup() { if [ -n "${GDAL_CONFIGURE_OPTS}" ]; then elog "User-specified configure options are ${GDAL_CONFIGURE_OPTS}." else elog "User-specified configure options are not set." elog "If needed, set GDAL_CONFIGURE_OPTS to enable grass support." fi } pkg_setup() { if ! version_is_at_least 4.2 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.2 to compile." fi elog elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" elog "source /usr/$(get_libdir)/${MY_PN}/bashrc" ewarn ewarn "FoamX is deprecated since ${MY_PN}-1.5! " ewarn use x86 && WM_OPTIONS="linuxGccDPOpt" use amd64 && WM_OPTIONS="linux64GccDPOpt" } pkg_setup() { ## binaries are compiled with gcc-4.3.3 if ! version_is_at_least 4.3 $(gcc-version) ; then die "${PN} requires >=sys-devel/gcc-4.3 in order to run." fi elog elog "In order to use ${MY_PN} you should add the following line to ~/.bashrc :" elog elog "alias startOF$(delete_all_version_separators ${MY_PV})='source ${INSDIR}/etc/bashrc'" elog elog "And everytime you want to use OpenFOAM you have to execute startOF$(delete_all_version_separators ${MY_PV})" ewarn ewarn "FoamX is deprecated since ${MY_PN}-1.5! " ewarn } pkg_setup() { G2CONF="${GCONF} --disable-schemas-install $(use_enable spell)" } pkg_setup() { if ! use extras; then ewarn "You have the extras use flag off. That means that proxy file transfers will not work" ewarn "If you need that press Contrl-C now and activate it!" fi if has_version '>=dev-tcltk/tclxml-3.0' \ && ! built_with_use dev-tcltk/tclxml expat ; then eerror "tclxml is missing expat support." eerror "Please add 'expat' to your USE flags, and re-emerge tclxml." die "tclxml needs expat support" fi } #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm" #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm" #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm" #SRC_URI="${SRC_URI} http://psi-im.org/download/lang/psi_${LNG/ur_PK/ur_pk}.qm" # Bug 299368 pkg_setup() { : } pkg_setup() { G2CONF="${G2CONF} $(use_enable dbus) $(use_enable eds ebook) $(use_enable galago) $(use_enable gnome-keyring) $(use_enable libnotify) $(use_enable spell aspell)" } # map pkg_setup() { G2CONF="${G2CONF} --disable-maintainer-mode --disable-static --disable-location --disable-gtk-doc --disable-map $(use_enable applet megaphone) $(use_enable applet nothere) $(use_enable debug) $(use_with networkmanager connectivity nm) $(use_enable python) $(use_enable spell) $(use_enable test coding-style-checks) $(use_enable webkit) " } # map pkg_setup() { G2CONF="${G2CONF} --disable-maintainer-mode --disable-static --disable-location --disable-gtk-doc --disable-map $(use_enable applet megaphone) $(use_enable applet nothere) $(use_enable debug) $(use_with networkmanager connectivity nm) $(use_enable python) $(use_enable spell) $(use_enable test coding-style-checks) $(use_enable webkit) " } pkg_setup() { G2CONF="$(use_enable debug) $(use_enable spell) $(use_enable python) $(use_enable applet megaphone) $(use_enable applet nothere) --disable-gtk-doc" } pkg_setup() { G2CONF="${G2CONF} --disable-static $(use_enable debug) $(use_enable spell) $(use_enable python) $(use_enable applet megaphone) $(use_enable applet nothere)" } # mono" # Mono support crashes pidgin #mono? ( dev-lang/mono )" pkg_setup() { if ! use gtk && ! use ncurses ; then einfo elog "You did not pick the ncurses or gtk use flags, only libpurple" elog "will be built." einfo fi if ! use xscreensaver; then elog "Note: xscreensaver USE flag is disabled. Thus pidgin will be unable" elog "to monitor idle/active status based on mouse/keyboard events" fi } # mono" # Mono support crashes pidgin #mono? ( dev-lang/mono )" pkg_setup() { if ! use gtk && ! use ncurses ; then einfo elog "You did not pick the ncurses or gtk use flags, only libpurple" elog "will be built." einfo fi } # mono" # Mono support crashes pidgin #mono? ( dev-lang/mono )" pkg_setup() { if ! use gtk && ! use ncurses ; then einfo elog "You did not pick the ncurses or gtk use flags, only libpurple" elog "will be built." einfo fi if ! use xscreensaver; then elog "Note: xscreensaver USE flag is disabled. Thus pidgin will be unable" elog "to monitor idle/active status based on mouse/keyboard events" fi } pkg_setup() { if use gloox && ! use ssl ; then eerror "You need to set the ssl flag when you want to use the gloox" eerror "Jabber library" die "Set ssl or unset gloox for ${PN}" fi } pkg_setup() { if use gloox && ! use ssl ; then eerror "You need to set the ssl flag when you want to use the gloox" eerror "Jabber library" die "Set ssl or unset gloox for ${PN}" fi } pkg_setup() { G2CONF="--disable-dependency-tracking" DOCS="AUTHORS" } pkg_setup() { if [ -f /etc/env.d/98openfire ]; then einfo "This is an upgrade" ewarn "As the plugin API changed, at least these plugins need to be updated also:" ewarn "User Search, IM Gateway, Fastpath, Monitoring" ewarn "hey can be downloaded via Admin Console or at" ewarn "${HOMEPAGE}" else ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:" ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire " ewarn "For more info see bug #139708" sleep 11 fi java-pkg-2_pkg_setup } pkg_setup() { if [ -f /etc/env.d/98openfire ]; then einfo "This is an upgrade" ewarn "As the plugin API changed, at least these plugins need to be updated also:" ewarn "User Search, IM Gateway, Fastpath, Monitoring" ewarn "hey can be downloaded via Admin Console or at" ewarn "${HOMEPAGE}" else ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:" ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire " ewarn "For more info see bug #139708" sleep 11 fi java-pkg-2_pkg_setup } pkg_setup() { if [ -f /etc/env.d/98openfire ]; then einfo "This is an upgrade" ewarn "As the plugin API changed, at least these plugins need to be updated also:" ewarn "User Search, IM Gateway, Fastpath, Monitoring" ewarn "hey can be downloaded via Admin Console or at" ewarn "${HOMEPAGE}" else ewarn "If this is an upgrade stop right ( CONTROL-C ) and run the command:" ewarn "echo 'CONFIG_PROTECT=\"/opt/openfire/resources/security/\"' > /etc/env.d/98openfire " ewarn "For more info see bug #139708" sleep 11 fi java-pkg-2_pkg_setup } pkg_setup() { if has_version "=dev-libs/boost-1.41"; then ewarn "QuteCom build system may mix up headers and libraries if versions of" ewarn "dev-libs/boost both before and after 1.41 are installed. If the build" ewarn "fails due to undefined boost symbols, remove older boost." fi } pkg_setup() { licq_plugins="auto-reply email rms" use ncurses && licq_plugins="${licq_plugins} console" use msn && licq_plugins="${licq_plugins} msn" use xosd && licq_plugins="${licq_plugins} osd" } pkg_setup() { if ! check_protocol_iuse then eerror eerror "Please activate at least one of the following protocol USE flags:" eerror "${PROTOCOL_IUSE//+}" eerror die "Please activate at least one protocol USE flag!" fi if use otr && ! use jabber then ewarn ewarn "Support for OTR is only supported with Jabber!" ewarn fi if use gadu && ! use jpeg then ewarn ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!" ewarn fi } pkg_setup() { if ! check_protocol_iuse then eerror eerror "Please activate at least one of the following protocol USE flags:" eerror "${PROTOCOL_IUSE//+}" eerror die "Please activate at least one protocol USE flag!" fi if use otr && ! use jabber then ewarn ewarn "Support for OTR is only supported with Jabber!" ewarn fi if use gadu && ! use jpeg then ewarn ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!" ewarn fi } pkg_setup() { if ! check_protocol_iuse then eerror eerror "Please activate at least one of the following protocol USE flags:" eerror "${PROTOCOL_IUSE//+}" eerror die "Please activate at least one protocol USE flag!" fi if use otr && ! use jabber then ewarn ewarn "Support for OTR is only supported with Jabber!" ewarn fi if use gadu && ! use jpeg then ewarn ewarn "You need jpeg support to be able to register Gadu-Gadu accounts!" ewarn fi } # this is for .html -> .txt docs convert # this is for .html -> .txt docs convert # this is for .html -> .txt docs convert pkg_setup() { if ! use dbus; then if use libnotify; then eerror "The dbus USE flag is required for libnotify support" die "USE=\"dbus\" needed for libnotify support" fi if use avahi; then eerror "The dbus USE flag is required for avahi support" die "USE=\"dbus\" needed for avahi support" fi else if has_version "=dev-dotnet/ndoc-1.3.1-r3' && has_version '>=dev-lang/mono-2.4' then elog "USE=bootstrap is set. Bootstrapping is required on first install of" elog "${CATEGORY}/${PN} and is set to on by default to not break up" elog "the dependency graph, since USE=-bootstrap requires:" elog ">=dev-lang/mono-2.4" elog ">=dev-dotnet/ndoc-1.3.1-r3" elog "Which would cause a circular dependency between ${CATEGORY}/${PN} and" elog "dev-dotnet/ndoc." elog "You have both installed, so you can set USE=-bootstrap and re-emerge:" elog "echo '${CATEGORY}/${PN} -bootstrap' >> /etc/portage/package.use" elog "emerge -1 =${CATEGORY}/${PF}" fi } pkg_setup() { unset doc examples use doc && doc=yes use examples && examples=yes } pkg_setup() { enewgroup clamav enewuser clamav -1 -1 /dev/null clamav } pkg_setup() { enewgroup clamav enewuser clamav -1 -1 /dev/null clamav } pkg_setup() { linux-info_pkg_setup if useq x86; then MY_ARCH_S="${S}/${P}full" elif useq amd64; then MY_ARCH_S="${S}/${P}x86_64full" fi local f QA_EXECSTACK="" for f in pcibasic2 mc97ich mc97via mc97ali mc97ati mc97sis usbcd2 soar hda engine ; do QA_EXECSTACK="${QA_EXECSTACK} usr/lib/hsfmodem/modules/imported/hsf${f}-i386.O" done } pkg_setup() { linux-info_pkg_setup if useq x86; then MY_ARCH_S="${S}/${P}full" elif useq amd64; then MY_ARCH_S="${S}/${P}x86_64full" fi local f QA_EXECSTACK="" for f in pcibasic2 mc97ich mc97via mc97ali mc97ati mc97sis usbcd2 soar hda engine ; do QA_EXECSTACK="${QA_EXECSTACK} usr/lib/hsfmodem/modules/imported/hsf${f}-i386.O" done } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-info_pkg_setup MOD_N="hcfpci" # Check to see if module is inserted into kernel, otherwise, build fails if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then eerror eerror "Module is in use by the kernel!!!" eerror "Attempting to unload..." eerror # Unloading module... ${MOD_N}stop if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then eerror "Failed to unload modules from kernel!!!" eerror "Please manualy remove the module from the kernel and emerge again." eerror die fi einfo "Successfuly removed module from memory. Resuming emerge." einfo fi } pkg_setup() { linux-info_pkg_setup MOD_N="hcfpci" # Check to see if module is inserted into kernel, otherwise, build fails if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then eerror eerror "Module is in use by the kernel!!!" eerror "Attempting to unload..." eerror # Unloading module... ${MOD_N}stop if [ "`lsmod | sed '/^'$MOD_N'serial/!d'`" ]; then eerror "Failed to unload modules from kernel!!!" eerror "Please manualy remove the module from the kernel and emerge again." eerror die fi einfo "Successfuly removed module from memory. Resuming emerge." einfo fi } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { kernel_is ge 2 6 24 && CONFIG_CHECK="${CONFIG_CHECK} PCI_LEGACY" linux-mod_pkg_setup if kernel_is 2 4; then eerror "This driver works only with 2.6 kernels!" die "unsupported kernel detected" fi BUILD_TARGETS="module" BUILD_PARAMS="KERNEL_DIR='${KV_DIR}'" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { use amd64 && multilib_toolchain_setup x86 MODULE_NAMES="ungrab-winmodem(:${WORKDIR}/ungrab-winmodem-${UNGRAB_PV})" CONFIG_CHECK="" MY_SLMODULES="" if ! use amd64; then MODULE_NAMES="${MODULE_NAMES} slamr(net:${S}/drivers)" MY_SLMODULES="${MY_SLMODULES} slamr.o" fi if kernel_is ge 2 6 25; then if use usb; then ewarn "slusb module will not be installed because is not compatible with kernels >=2.6.25" fi elif use usb; then MODULE_NAMES="${MODULE_NAMES} slusb(net:${S}/drivers)" CONFIG_CHECK="${CONFIG_CHECK} USB" MY_SLMODULES="${MY_SLMODULES} slusb.o" fi BUILD_TARGETS="all" if kernel_is ge 2 6 24; then CONFIG_CHECK="${CONFIG_CHECK} PCI_LEGACY" fi linux-mod_pkg_setup BUILD_PARAMS="KERNEL_DIR=${KV_OUT_DIR}" } pkg_setup() { use amd64 && multilib_toolchain_setup x86 MODULE_NAMES="ungrab-winmodem(:${WORKDIR}/ungrab-winmodem-${UNGRAB_PV})" CONFIG_CHECK="" MY_SLMODULES="" if ! use amd64; then MODULE_NAMES="${MODULE_NAMES} slamr(net:${S}/drivers)" MY_SLMODULES="${MY_SLMODULES} slamr.o" fi if kernel_is ge 2 6 25; then if use usb; then ewarn "slusb module will not be installed because is not compatible with kernels >=2.6.25" fi elif use usb; then MODULE_NAMES="${MODULE_NAMES} slusb(net:${S}/drivers)" CONFIG_CHECK="${CONFIG_CHECK} USB" MY_SLMODULES="${MY_SLMODULES} slusb.o" fi BUILD_TARGETS="all" if kernel_is ge 2 6 24; then CONFIG_CHECK="${CONFIG_CHECK} PCI_LEGACY" fi linux-mod_pkg_setup BUILD_PARAMS="KERNEL_DIR=${KV_OUT_DIR}" } pkg_setup() { use amd64 && multilib_toolchain_setup x86 MODULE_NAMES="ungrab-winmodem(:${WORKDIR}/ungrab-winmodem-${UNGRAB_PV})" CONFIG_CHECK="" MY_SLMODULES="" if ! use amd64; then MODULE_NAMES="${MODULE_NAMES} slamr(net:${S}/drivers)" MY_SLMODULES="${MY_SLMODULES} slamr.o" fi if kernel_is ge 2 6 25; then if use usb; then ewarn "slusb module will not be installed because is not compatible with kernels >=2.6.25" fi elif use usb; then MODULE_NAMES="${MODULE_NAMES} slusb(net:${S}/drivers)" CONFIG_CHECK="${CONFIG_CHECK} USB" MY_SLMODULES="${MY_SLMODULES} slusb.o" fi BUILD_TARGETS="all" if kernel_is ge 2 6 24; then CONFIG_CHECK="${CONFIG_CHECK} PCI_LEGACY" fi linux-mod_pkg_setup BUILD_PARAMS="KERNEL_DIR=${KV_OUT_DIR}" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi if ! linux_chkconfig_present ISDN_CAPI_CAPI20; then die "For using the driver you need a kernel with enabled CAPI support." fi local USERCARD CARD FRITZCAPI_BUILD_CARDS="" FRITZCAPI_BUILD_TARGETS="" MODULE_NAMES="" BUILD_PARAMS="KDIR='${KV_DIR}' LIBDIR='${WORKDIR}'/var/lib/fritz" BUILD_TARGETS="all" if ! use amd64; then FRITZCAPI_MODULES=("fcpci" "fcpcmcia" "fcusb" "fcusb2" "fxusb" "fcclassic" "fcpnp" "fxusb_CZ" "e2220pc" "e5520pc") FRITZCAPI_TARGETS=("fritz.pci" "fritz.pcmcia" "fritz.usb" "fritz.usb2" "fritz.xusb" "fritz.classic" "fritz.pnp" "fritz.xusb_CZ" "e2220pc" "e5520pc") else FRITZCAPI_MODULES=("fcpci" "fcpcmcia" "fcusb2") FRITZCAPI_TARGETS=("fritz.pci" "fritz.pcmcia" "fritz.usb2") fi if [ -n "${FRITZCAPI_CARDS}" ]; then #Check existence of user selected cards for USERCARD in ${FRITZCAPI_CARDS} ; do for ((CARD=0; CARD < ${#FRITZCAPI_MODULES[*]}; CARD++)); do if [ "${USERCARD}" = "${FRITZCAPI_MODULES[CARD]}" ]; then FRITZCAPI_BUILD_CARDS="${FRITZCAPI_BUILD_CARDS} ${FRITZCAPI_MODULES[CARD]}" FRITZCAPI_BUILD_TARGETS="${FRITZCAPI_BUILD_TARGETS} ${FRITZCAPI_TARGETS[CARD]}" MODULE_NAMES="${MODULE_NAMES} `get_card_module_name ${CARD}`" continue 2 fi done die "Module ${USERCARD} not present in ${P}" done else elog elog "You can control the modules which are built with the variable" elog "FRITZCAPI_CARDS which should contain a blank separated list" elog "of a selection from the following cards:" elog " ${FRITZCAPI_MODULES[*]}" elog ewarn "I give you the chance of hitting Ctrl-C and make the necessary" ewarn "adjustments in /etc/make.conf." ebeep #Filter build targets by USE for ((CARD=0; CARD < ${#FRITZCAPI_MODULES[*]}; CARD++)); do if [ "${FRITZCAPI_MODULES[CARD]/pcmcia/}" != ${FRITZCAPI_MODULES[CARD]} ] && (! use pcmcia || kernel_is ge 2 6 17); then continue fi if [ "${FRITZCAPI_MODULES[CARD]/usb/}" != ${FRITZCAPI_MODULES[CARD]} ] && ! use usb; then continue fi FRITZCAPI_BUILD_CARDS="${FRITZCAPI_BUILD_CARDS} ${FRITZCAPI_MODULES[CARD]}" FRITZCAPI_BUILD_TARGETS="${FRITZCAPI_BUILD_TARGETS} ${FRITZCAPI_TARGETS[CARD]}" MODULE_NAMES="${MODULE_NAMES} `get_card_module_name ${CARD}`" done fi elog "Selected cards: ${FRITZCAPI_BUILD_CARDS}" } # versions in portage pkg_setup() { # check kernel config CONFIG_CHECK="~ISDN ~ISDN_CAPI ~ISDN_CAPI_CAPI20" use pppd && CONFIG_CHECK="${CONFIG_CHECK} ~ISDN_CAPI_MIDDLEWARE ~ISDN_CAPI_CAPIFS_BOOL" linux-info_pkg_setup } pkg_setup() { enewgroup fax enewuser fax -1 -1 /dev/null fax } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src) ${PN}_cs(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src) ${PN}_cs(net:${S}/src)" } pkg_setup() { local USERCARD CARD EC NUM=0 CONFIG_CHECK="ISDN_CAPI ISDN_CAPI_CAPI20 ISDN_CAPI_CAPIFS_BOOL" kernel_is ge 2 6 24 && CONFIG_CHECK="${CONFIG_CHECK} PCI_LEGACY" linux-mod_pkg_setup # base modules BUILD_TARGETS="modules" BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} MINCLUDES=${MY_S}/include CONFIG_MISDN_DRV=m" MODULE_NAMES="mISDN_core(net:) mISDN_isac(net:) mISDN_l1(net:) mISDN_l2(net:) mISDN_x25dte(net:) l3udss1(net:) mISDN_capi(net:) mISDN_dtmf(net:)" # extra modules BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_DSP=m CONFIG_MISDN_LOOP=m CONFIG_MISDN_DEBUGTOOL=m" MODULE_NAMES="${MODULE_NAMES} mISDN_dsp(net:) mISDN_loop(net:) mISDN_debugtool(net:)" # check if multiple echo cancellers have been selected EC_SELECTED=$(select_echo_cancel) for EC in ${MISDN_EC_FLAGS}; do use ${EC} && : $((NUM++)) done if [ ${NUM} -gt 1 ]; then # multiple flags are active, only the first in the MISDN_EC_FLAGS # list will be used, make sure the user knows about this ewarn "Multiple echo canceller flags are active but only one will be used!" ewarn "Selected: ${EC_SELECTED}" else elog "Selected echo canceller: ${EC_SELECTED}" fi # Check existence of user selected cards if [ -n "${MISDN_CARDS}" ]; then for USERCARD in ${MISDN_CARDS}; do for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do if [ "${USERCARD}" = "${MISDN_MODULES[CARD]}" ]; then MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=m" continue 2 fi done die "Module ${USERCARD} not present in ${P}" done else elog "You can control the modules which are built with the variable" elog "MISDN_CARDS which should contain a blank separated list" elog "of a selection from the following cards:" elog " ${MISDN_MODULES[*]}" # enable everything for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=m" done fi } pkg_setup() { local numec=0 CONFIG_CHECK="ISDN_CAPI ISDN_CAPI_CAPI20 ISDN_CAPI_CAPIFS_BOOL" linux-mod_pkg_setup MODULE_NAMES="mISDN_capi(net:) mISDN_dtmf(net:) mISDN_l1(net:) mISDN_x25dte(net:) l3udss1(net:) mISDN_core(net:) mISDN_isac(net:) mISDN_l2(net:) mISDN_dsp(net:)" BUILD_PARAMS="-C ${KV_DIR} SUBDIRS=${S} MINCLUDES=${WORKDIR}/${MY_P}/include CONFIG_MISDN_DRV=m CONFIG_MISDN_DSP=y" BUILD_TARGETS="modules" #I4LmISDN(net:) does not compile :( CONFIG_I4L_CAPI_LAYER=m # the i4l->capi simulation seems to be only for kernel 2.4 # check if multiple echo cancellers have been selected for x in ${MISDN_EC_FLAGS}; do use ${x} && : $((numec++)) done if [[ ${numec} -gt 1 ]]; then # multiple flags are active, only the first in the ZAP_EC_FLAGS list # will be used, make sure the user knows about this ewarn ewarn "Multiple echo canceller flags are active but only one will be used!" ewarn "Selected: $(select_echo_cancel)" fi # Check existence of user selected cards if [ -n "${MISDN_CARDS}" ]; then for USERCARD in ${MISDN_CARDS} ; do for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do if [ "${USERCARD}" = "${MISDN_MODULES[CARD]}" ]; then MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" #[ "sedlfax" = "${MISDN_MODULES[CARD]}" ] && MODULE_NAMES="${MODULE_NAMES} faxl3(net:)" BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=y" continue 2 fi done die "Module ${USERCARD} not present in ${P}" done else elog elog "You can control the modules which are built with the variable" elog "MISDN_CARDS which should contain a blank separated list" elog "of a selection from the following cards:" elog " ${MISDN_MODULES[*]}" elog ewarn "I give you the chance of hitting Ctrl-C and make the necessary" ewarn "adjustments in /etc/make.conf." # enable everything for ((CARD=0; CARD < ${#MISDN_MODULES[*]}; CARD++)); do MODULE_NAMES="${MODULE_NAMES} ${MISDN_MODULES[CARD]}(net:)" #[ "sedlfax" = "${MISDN_MODULES[CARD]}" ] && MODULE_NAMES="${MODULE_NAMES} faxl3(net:)" BUILD_PARAMS="${BUILD_PARAMS} CONFIG_MISDN_${MISDN_KCONFIG[CARD]}=y" done fi } pkg_setup() { if use mppe-mppc; then echo ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC" ewarn "patch developed by Jan Dubiec." ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14." ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:" ewarn " http://mppe-mppc.alphacron.de/" ewarn "CAUTION: MPPC is a U.S. patented algorithm!" ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first." ebeep fi } pkg_setup() { if use mppe-mppc; then echo ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC" ewarn "patch developed by Jan Dubiec." ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14." ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:" ewarn " http://mppe-mppc.alphacron.de/" ewarn "CAUTION: MPPC is a U.S. patented algorithm!" ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first." ebeep fi } pkg_setup() { if use mppe-mppc; then echo ewarn "The mppe-mppc flag overwrites the pppd native MPPE support with MPPE-MPPC" ewarn "patch developed by Jan Dubiec." ewarn "The resulted pppd will work only with patched kernels with version <= 2.6.14." ewarn "You could obtain the kernel patch from MPPE-MPPC homepage:" ewarn " http://mppe-mppc.alphacron.de/" ewarn "CAUTION: MPPC is a U.S. patented algorithm!" ewarn "Ask yourself if you really need it and, if you do, consult your lawyer first." ebeep fi } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { if kernel_is ge 2 6 16; then eerror "This driver is not supported by kernels >= 2.6.16." eerror "Please see http://bugs.gentoo.org/show_bug.cgi?id=127464 for more info." die "unsupported kernel version" elif kernel_is 2 4; then BUILD_TARGETS="536core" BUILD_PARAMS="KERNEL_SOURCE_PATH='${KV_DIR}' TARGET=TARGET_SELAH" else BUILD_TARGETS="536core_26" BUILD_PARAMS="KERNEL_SOURCE_PATH='${KV_DIR}'" fi linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { if use edirectory && ! use ldap ; then eerror "Cannot add integration with Novell's eDirectory without having LDAP support!" eerror "Either you select ldap USE flag or remove edirectory" die "edirectory needs ldap" fi enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd } pkg_setup() { if use edirectory && ! use ldap ; then eerror "Cannot add integration with Novell's eDirectory without having LDAP support!" eerror "Either you select ldap USE flag or remove edirectory" die "edirectory needs ldap" fi enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd } pkg_setup() { if use edirectory && ! use ldap ; then eerror "Cannot add integration with Novell's eDirectory without having LDAP support!" eerror "Either you select ldap USE flag or remove edirectory" die "edirectory needs ldap" fi enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd } pkg_setup() { if use edirectory && ! use ldap ; then eerror "Cannot add integration with Novell's eDirectory without having LDAP support!" eerror "Either you select ldap USE flag or remove edirectory" die "edirectory needs ldap" fi enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd } pkg_setup() { if use edirectory && ! use ldap ; then eerror "Cannot add integration with Novell's eDirectory without having LDAP support!" eerror "Either you select ldap USE flag or remove edirectory" die "edirectory needs ldap" fi enewgroup radiusd enewuser radiusd -1 -1 /var/log/radius radiusd } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-info_pkg_setup if kernel_is lt 2 6 10 ; then eerror "The kernel-space driver exists only in kernels >= 2.6.10." eerror "Please upgrade the kernel." die "Unsupported kernel version" fi } pkg_setup() { linux-info_pkg_setup if kernel_is lt 2 6 16 ; then eerror "The kernel-space driver exists only in kernels >= 2.6.16." eerror "Please emerge net-dialup/eagle-usb instead or upgrade the kernel." die "Unsupported kernel version" fi if ! has_version '>=sys-apps/baselayout-1.12.0' ; then ewarn "The best way of using this driver is through the PPP net module of the" ewarn " >=sys-apps/baselayout-1.12.0" ewarn "which is also the only documented mode of using ${PN} driver." ewarn "Please install baselayout-1.12.0 or else you will be on your own!" fi } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/1/fritz/src) ${PN}2(net:${S}/2/fritz/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/1/fritz/src) ${PN}2(net:${S}/2/fritz/src)" } #make test is useless and vector_test.c is broken #make test is useless and vector_test.c is broken pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-info_pkg_setup if kernel_is lt 2 6 16 ; then eerror "The kernel-space driver exists only in kernels >= 2.6.16." eerror "Please emerge net-dialup/eagle-usb instead or upgrade the kernel." die "Unsupported kernel version" fi if ! has_version '>=sys-apps/baselayout-1.12.0' ; then ewarn "The best way of using this driver is through the PPP net module of the" ewarn " >=sys-apps/baselayout-1.12.0" ewarn "which is also the only documented mode of using ${PN} driver." ewarn "Please install baselayout-1.12.0 or else you will be on your own!" fi } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { linux-mod_pkg_setup if ! kernel_is 2 6; then die "This package works only with 2.6 kernel!" fi BUILD_TARGETS="all" BUILD_PARAMS="KDIR=${KV_DIR} LIBDIR=${S}/src" MODULE_NAMES="${PN}(net:${S}/src)" } pkg_setup() { enewgroup sms enewuser sendpage -1 -1 /var/spool/sendpage sms } # The normal version tree ebuild we are based on (for patching) pkg_setup() { DEFAULTS_DIR=/usr/share/X11/app-defaults } pkg_setup() { DEFAULTS_DIR=/usr/share/X11/app-defaults } pkg_setup() { XFCONF="--disable-dependency-tracking --docdir="${EPREFIX}/usr/share/doc/${PF}" $(use_enable dbus) $(use_enable debug) $(use_enable doc gen-doc)" DOCS="AUTHORS ChangeLog HACKING NEWS README THANKS" } pkg_setup() { PATCHES=( "${FILESDIR}"/${PN}-0.4.0-interix-fs-case.patch ) XFCONF="--disable-dependency-tracking --docdir=/usr/share/doc/${PF} $(use_enable dbus) $(use_enable debug) $(use_enable doc xsltproc)" DOCS="AUTHORS ChangeLog HACKING NEWS README THANKS" } pkg_setup() { G2CONF="${G2CONF} --with-smclient-backend" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } pkg_setup() { linux-mod_pkg_setup BUILD_PARAMS="KERN_DIR=${KV_DIR} KERNOUT=${KV_OUT_DIR}" } SRC_URI="mirror://sourceforge/linuxwacom/files/${PN}/${P}.tar.bz2" pkg_setup() { linux-info_pkg_setup CONFIGURE_OPTIONS="$(use_enable debug)" } SRC_URI="http://people.freedesktop.org/~whot/${PN}/${P}.tar.bz2" pkg_setup() { linux-info_pkg_setup CONFIGURE_OPTIONS="$(use_enable debug)" } SRC_URI="mirror://sourceforge/linuxwacom/files/${PN}/${P}.tar.bz2" pkg_setup() { linux-info_pkg_setup CONFIGURE_OPTIONS="$(use_enable debug)" } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/common/lib/modules/fglrx/build_mod" #check kernel and sets up KV_OBJ MODULE_NAMES="fglrx(video:${S}/common/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" if kernel_is ge 2 6 29; then die "${P} is not yet compatible with 2.6.29 kernels. See bug #264021." fi if ! kernel_is 2 6; then eerror "Need a 2.6 kernel to compile against!" die "Need a 2.6 kernel to compile against!" fi if kernel_is ge 2 6 25 && linux_chkconfig_present PREEMPT_RCU; then die "${P} is not compatible with RCU Preemption (bug #223281), please disable it" fi if kernel_is ge 2 6 26 && ! linux_chkconfig_present UNUSED_SYMBOLS; then ewarn "You have to Enable unused/obsolete exported symbols in Kernel hacking section of kernel config for fglrx to load" fi if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then eerror "${P} requires support for pci_find_slot." die "${P} requires support for pci_find_slot." fi if ! linux_chkconfig_present MTRR; then ewarn "You don't have MTRR support enabled, the direct rendering will not work." fi if linux_chkconfig_builtin DRM; then ewarn "You have DRM support enabled builtin, the direct rendering will not work." fi if ! linux_chkconfig_present AGP && \ ! linux_chkconfig_present PCIEPORTBUS; then ewarn "You need AGP and/or PCI Express support for direct rendering to work." fi if linux_chkconfig_present PARAVIRT; then eerror "The current ati-drivers don't compile when having" eerror "paravirtualization active due to GPL symbol export" eerror "restrictions." eerror "Please disable it:" eerror " CONFIG_PARAVIRT=n" eerror "in /usr/src/linux/.config or" eerror " Processor type and features -->" eerror " [ ] Paravirtualization support (EXPERIMENTAL)" eerror "in 'menuconfig'" die "CONFIG_PARAVIRT enabled" fi if ! linux_chkconfig_present MAGIC_SYSRQ; then eerror "You need MAGIC_SYSRQ enabled in order to build ati-drivers" die "CONFIG_MAGIC_SYSRQ disabled" fi # Only support xorg-server >=1.5 BASE_DIR="${S}/x740" if ! linux_chkconfig_present PCI_MSI; then eerror "You need PCI_MSI enabled in order to build ati-drivers" die "CONFIG_PCI_MSI disabled" fi # This is used like $(get_libdir) for paths in ati's package. if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/common/lib/modules/fglrx/build_mod" #check kernel and sets up KV_OBJ MODULE_NAMES="fglrx(video:${S}/common/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" if ! kernel_is 2 6; then eerror "Need a 2.6 kernel to compile against!" die "Need a 2.6 kernel to compile against!" fi if kernel_is ge 2 6 25 && linux_chkconfig_present PREEMPT_RCU; then die "${P} is not compatible with RCU Preemption (bug #223281), please disable it" fi if kernel_is ge 2 6 26 && ! linux_chkconfig_present UNUSED_SYMBOLS; then ewarn "You have to Enable unused/obsolete exported symbols in Kernel hacking section of kernel config for fglrx to load" fi if kernel_is ge 2 6 24 && ! linux_chkconfig_present PCI_LEGACY; then eerror "${P} requires support for pci_find_slot." die "${P} requires support for pci_find_slot." fi if ! linux_chkconfig_present MTRR; then ewarn "You don't have MTRR support enabled, the direct rendering will not work." fi if linux_chkconfig_builtin DRM; then ewarn "You have DRM support enabled builtin, the direct rendering will not work." fi if ! linux_chkconfig_present AGP && \ ! linux_chkconfig_present PCIEPORTBUS; then ewarn "You need AGP and/or PCI Express support for direct rendering to work." fi if linux_chkconfig_present PARAVIRT; then eerror "The current ati-drivers don't compile when having" eerror "paravirtualization active due to GPL symbol export" eerror "restrictions." eerror "Please disable it:" eerror " CONFIG_PARAVIRT=n" eerror "in /usr/src/linux/.config or" eerror " Processor type and features -->" eerror " [ ] Paravirtualization support (EXPERIMENTAL)" eerror "in 'menuconfig'" die "CONFIG_PARAVIRT enabled" fi if ! linux_chkconfig_present MAGIC_SYSRQ; then eerror "You need MAGIC_SYSRQ enabled in order to build ati-drivers" die "CONFIG_MAGIC_SYSRQ disabled" fi # Only support xorg-server >=1.5 BASE_DIR="${S}/x740" # This is used like $(get_libdir) for paths in ati's package. if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x740" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older one, usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { # Define module dir. MODULE_DIR="${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod" # xorg folder BASE_DIR="${S}/x750" # amd64/x86 if use amd64 ; then MY_BASE_DIR="${BASE_DIR}_64a" PKG_LIBDIR=lib64 ARCH_DIR="${S}/arch/x86_64" else MY_BASE_DIR="${BASE_DIR}" PKG_LIBDIR=lib ARCH_DIR="${S}/arch/x86" fi if use modules; then MODULE_NAMES="fglrx(video:${S}/${FOLDER_PREFIX}/lib/modules/fglrx/build_mod/2.6.x)" BUILD_TARGETS="kmod_build" linux-mod_pkg_setup BUILD_PARAMS="GCC_VER_MAJ=$(gcc-major-version) KVER=${KV_FULL} KDIR=${KV_DIR}" _check_kernel_config fi elog elog "Please note that this driver supports only graphic cards based on" elog "r600 chipset and newer." elog "This represent the ATI Radeon HD series at this moment." elog elog "If your card is older then usage of ${CATEGORY}/xf86-video-ati" elog "as replacement is highly recommended. Rather than staying with" elog "old versions of this driver." elog "For migration informations please reffer to:" elog "http://www.gentoo.org/proj/en/desktop/x/x11/ati-migration-guide.xml" einfo } pkg_setup() { if use modules; then linux-mod_pkg_setup wacom_check # echo "kernel version is ${KV} , name is ${KV%%-*}" fi ewarn "Versions of linuxwacom >= 0.7.9 require gcc >= 4.2 to compile." } pkg_setup() { if use modules; then linux-mod_pkg_setup wacom_check # echo "kernel version is ${KV} , name is ${KV%%-*}" fi ewarn "Versions of linuxwacom >= 0.7.9 require gcc >= 4.2 to compile." } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 # use the right package if use x86; then NV_PACKAGE="${X86_NV_PACKAGE}" elif use amd64; then NV_PACKAGE="${AMD64_NV_PACKAGE}" elif use x86-fbsd; then NV_PACKAGE="${X86_FBSD_NV_PACKAGE}" else die "Could not determine proper NVIDIA package" fi # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${WORKDIR}/${NV_PACKAGE}/doc" NV_EXEC="${WORKDIR}/${NV_PACKAGE}/obj" NV_SRC="${WORKDIR}/${NV_PACKAGE}/src" elif use kernel_linux; then NV_DOC="${WORKDIR}/${NV_PACKAGE}/usr/share/doc" NV_EXEC="${WORKDIR}/${NV_PACKAGE}/usr/bin" NV_SRC="${WORKDIR}/${NV_PACKAGE}/usr/src/nv" fi if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${NV_SRC})" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" # Unknown why this needs to be set export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_SRC="${S}/src" elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_SRC="${S}/usr/src/nv" else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check sysvipc_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_SRC="${S}/src" elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_SRC="${S}/usr/src/nv" else die "Could not determine proper NVIDIA package" fi } pkg_setup() { # try to turn off distcc and ccache for people that have a problem with it export DISTCC_DISABLE=1 export CCACHE_DISABLE=1 if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then eerror "This ebuild doesn't currently support changing your default abi." die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" fi if use kernel_linux; then linux-mod_pkg_setup MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" mtrr_check lockdep_check fi # On BSD userland it wants real make command use userland_BSD && MAKE="$(get_bmake)" export _POSIX2_VERSION="199209" # Since Nvidia ships 3 different series of drivers, we need to give the user # some kind of guidance as to what version they should install. This tries # to point the user in the right direction but can't be perfect. check # nvidia-driver.eclass nvidia-driver-check-warning # set variables to where files are in the package structure if use kernel_FreeBSD; then NV_DOC="${S}/doc" NV_EXEC="${S}/obj" NV_LIB="${S}/obj" NV_SRC="${S}/src" NV_MAN="${S}/x11/man" NV_X11="${S}/obj" NV_X11_DRV="${NV_X11}" NV_X11_EXT="${NV_X11}" NV_SOVER=1 elif use kernel_linux; then NV_DOC="${S}/usr/share/doc" NV_EXEC="${S}/usr/bin" NV_LIB="${S}/usr/lib" NV_SRC="${S}/usr/src/nv" NV_MAN="${S}/usr/share/man/man1" NV_X11="${S}/usr/X11R6/lib" NV_X11_DRV="${NV_X11}/modules/drivers" NV_X11_EXT="${NV_X11}/modules/extensions" NV_SOVER=${PV} else die "Could not determine proper NVIDIA package" fi } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { xorg-2_pkg_setup CONFIGURE_OPTIONS="$(use_enable dri) --enable-xvmc" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { linux-mod_pkg_setup local CONFIG_CHECK="FB_CFB_FILLRECT FB_CFB_COPYAREA FB_CFB_IMAGEBLIT ~FRAMEBUFFER_CONSOLE !DRM" local ERROR_FB_CFB_FILLRECT="You don't have CONFIG_FB_CFB_FILLRECT enabled in you kernel config. To do this either hack drivers/video/Kconfig or enable an FB driver that pulls it in (for example VESAFB)" local ERROR_FB_CFB_COPYAREA="You don't have CONFIG_FB_CFB_FILLRECT enabled in you kernel config. To do this either hack drivers/video/Kconfig or enable an FB driver that pulls it in (for example VESAFB)" local ERROR_FB_CFB_IMAGEBLIT="You don't have CONFIG_FB_CFB_IMAGEBLIT enabled in you kernel config. To do this either hack drivers/video/Kconfig or enable an FB driver that pulls it in (for example VESAFB)" local WARNING_FBCON="You should really have CONFIG_FRAMEBUFFER_CONSOLE set in your kernel config. Otherwise you will get a seriously messed up console. You can work around this by loading the psb module with no_fb=1" check_extra_config linux_chkconfig_builtin "FRAMEBUFFER_CONSOLE" || ewarn "You really should not have CONFIG_FRAMEBUFFER_CONSOLE as a module. Otherwise you will get a seriously messed up console. You can work around this by loading the psb module with no_fb=1" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { CONFIGURE_OPTIONS=" $(use_enable debug) $(use_enable debug xv-debug) " } pkg_setup() { CONFIGURE_OPTIONS=" $(use_enable debug) $(use_enable debug xv-debug) " } pkg_setup() { xorg-2_pkg_setup CONFIGURE_OPTIONS=" --enable-dri --enable-kms " } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable dri)" } pkg_setup() { G2CONF="${G2CONF} --enable-compositor --enable-gconf --enable-render --enable-shape --enable-sm --enable-startup-notification --enable-xsync $(use_enable xinerama)" } pkg_setup() { G2CONF="${G2CONF} --enable-compositor --enable-gconf --enable-render --enable-shape --enable-sm --enable-startup-notification --enable-xsync $(use_enable xinerama)" } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } pkg_setup() { if use truetype && use minimal; then ewarn "You have both 'truetype' and 'minimal' use flags enabled." ewarn "If you really want a minimal install, you will have to turn off" ewarn "the truetype flag for this package." fi } #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" pkg_setup() { MY_P=MY_P_${ARCH} export MY_P=${!MY_P} } pkg_setup() { MY_P=MY_P_${ARCH} export MY_P=${!MY_P} } pkg_setup() { MY_P=MY_P_${ARCH} export MY_P=${!MY_P} } pkg_setup() { MY_P=MY_P_${ARCH} export MY_P=${!MY_P} } pkg_setup() { MY_P=MY_P_${ARCH} export MY_P=${!MY_P} } pkg_setup(){ if [ ! -z "${PGUSER}" ]; then eval unset PGUSER fi if [ ! -z "${PGDATABASE}" ]; then eval unset PGDATABASE fi local tmp tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)" if [ "${tmp}" != "$(get_version_component_range 2)" ]; then elog "You must soft upgrade your existing postgis enabled databases" elog "by adding their names in the ${ROOT}conf.d/postgis_dbs file" elog "then using 'emerge --config postgis'." require_soft_upgrade="1" ebeep 2 fi } pkg_setup(){ local tmp tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)" if [ "${tmp}" != "$(get_version_component_range 2)" ]; then elog "You must soft upgrade your existing postgis enabled databases" elog "using 'emerge --config postgis'." require_soft_upgrade="1" ebeep 2 fi } pkg_setup(){ if [ ! -z "${PGUSER}" ]; then eval unset PGUSER fi if [ ! -z "${PGDATABASE}" ]; then eval unset PGDATABASE fi local tmp tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)" if [ "${tmp}" != "$(get_version_component_range 2)" ]; then elog "You must soft upgrade your existing postgis enabled databases" elog "by adding their names in the ${ROOT}conf.d/postgis_dbs file" elog "then using 'emerge --config postgis'." require_soft_upgrade="1" ebeep 2 fi } pkg_setup(){ if [ ! -z "${PGUSER}" ]; then eval unset PGUSER fi if [ ! -z "${PGDATABASE}" ]; then eval unset PGDATABASE fi local tmp tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)" if [ "${tmp}" != "$(get_version_component_range 2)" ]; then elog "You must soft upgrade your existing postgis enabled databases" elog "by adding their names in the ${ROOT}conf.d/postgis_dbs file" elog "then using 'emerge --config postgis'." require_soft_upgrade="1" ebeep 2 fi } pkg_setup(){ if [ ! -z "${PGUSER}" ]; then eval unset PGUSER fi if [ ! -z "${PGDATABASE}" ]; then eval unset PGDATABASE fi local tmp tmp="$(portageq match / ${CATEGORY}/${PN} | cut -d'.' -f2)" if [ "${tmp}" != "$(get_version_component_range 2)" ]; then elog "You must soft upgrade your existing postgis enabled databases" elog "by adding their names in the ${ROOT}conf.d/postgis_dbs file" elog "then using 'emerge --config postgis'." require_soft_upgrade="1" ebeep 2 fi } pkg_setup() { if has_version '= 8i client for Linux in" eerror "order to compile TOra with Oracle support." eerror eerror "Otherwise specify -oracle in your USE variable." eerror eerror "You can download the Oracle software from" eerror "http://otn.oracle.com/software/content.html" die fi } pkg_setup() { webapp_pkg_setup require_php_with_use pcre postgres session } pkg_setup() { webapp_pkg_setup require_php_with_use pcre postgres session } pkg_setup() { webapp_pkg_setup require_php_with_use pcre postgres session } pkg_setup() { my_arch } pkg_setup() { my_arch } pkg_setup() { export WX_GTK_VER=2.6 export WX_HOME=/usr need-wxwidgets unicode } pkg_setup() { export WX_GTK_VER="2.6" need-wxwidgets gtk2 } pkg_setup() { export WX_GTK_VER="2.8" need-wxwidgets gtk2 } pkg_setup() { export WX_GTK_VER="2.6" need-wxwidgets gtk2 } pkg_setup() { use !mysql && use !postgres && die "You need to use at least one of USE=mysql or USE=postgres for benchmarking!" } pkg_setup() { use !mysql && use !postgres && die "You need to use at least one of USE=mysql or USE=postgres for benchmarking!" } pkg_setup() { use !mysql && use !postgres && die "You need to use at least one of USE=mysql or USE=postgres for benchmarking!" } pkg_setup() { use !mysql && use !postgres && die "You need to use at least one of USE=mysql or USE=postgres for benchmarking!" } pkg_setup() { if ! use administrator && ! use query-browser then elog "Please activate at least one of the following USE flags:" elog "- administrator for MySQL Administrator" elog "- query-browser for MySQL Query Browser" die "Please activate at least one of the following USE flags: administrator, query-browser" fi # Needed for gcc-4.3 append-cppflags -D_GNU_SOURCE } pkg_setup() { if ! use administrator && ! use query-browser then elog "Please activate at least one of the following USE flags:" elog "- administrator for MySQL Administrator" elog "- query-browser for MySQL Query Browser" die "Please activate at least one of the following USE flags: administrator, query-browser" fi # Needed for gcc-4.3 append-cppflags -D_GNU_SOURCE } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres if use python; then python_set_active_version 2 fi } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres if use python; then python_set_active_version 2 fi } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres if use python; then python_set_active_version 2 fi } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } pkg_setup() { enewgroup postgres 70 enewuser postgres 70 /bin/bash /var/lib/postgresql postgres } # snapshot pkg_setup() { if use xulrunner && use spidermonkey; then eerror "Please choose only one of xulrunner or spidermonkey." die "Cannot USE both spidermonkey and xulrunner" fi } pkg_setup() { if use xulrunner && use spidermonkey; then eerror "Please choose only one of xulrunner or spidermonkey." die "Cannot USE both spidermonkey and xulrunner" fi } pkg_setup() { if use xulrunner && use spidermonkey; then eerror "Please choose only one of xulrunner or spidermonkey." die "Cannot USE both spidermonkey and xulrunner" fi } pkg_setup() { python_tkinter_exists } #TODO cgal tbb pkg_setup() { if use threads ; then if use opengl ; then TACHYON_MAKE_TARGET=linux-thr-ogl if use mpi ; then die "tachyon does not support MPI with OpenGL and threads" fi elif use mpi ; then TACHYON_MAKE_TARGET=linux-mpi-thr else TACHYON_MAKE_TARGET=linux-thr fi # TODO: Support for linux-athlon-thr ? else if use opengl ; then # TODO: Support target: linux-lam-64-ogl die "OpenGL is only available with USE=threads!" elif use mpi ; then TACHYON_MAKE_TARGET=linux-mpi else TACHYON_MAKE_TARGET=linux fi # TODO: Support for linux-p4, linux-athlon, linux-ps2 ? fi if [[ -z "${TACHYON_MAKE_TARGET}" ]]; then die "No target found, check use flags" else einfo "Using target: ${TACHYON_MAKE_TARGET}" fi } pkg_setup() { ERL_PATH="/usr/$(get_libdir)/erlang/lib/" ESDL_PATH="${ERL_PATH}/$(best_version media-libs/esdl | cut -d/ -f2)" } pkg_setup() { if use X && ! grep -q x11gray4 <(gs -h 2>/dev/null); then die "you need a ghostscript version with 'x11' and 'x11gray4' devices!" fi } pkg_setup() { enewgroup scanner IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp" if [[ "${SANE_BACKENDS}" != "" ]]; then use gphoto2 && SANE_BACKENDS="${SANE_BACKENDS} gphoto2" use v4l && SANE_BACKENDS="${SANE_BACKENDS} v4l" use usb && SANE_BACKENDS="${SANE_BACKENDS} sm3600" fi if ! use x86 && ! use amd64; then tmp="${SANE_BACKENDS}" for backend in ${IEEE1284_BACKENDS}; do if [[ "${tmp/$backend/}" != "${SANE_BACKENDS}" ]]; then ewarn "You selected a backend which is disabled because it's not usable in your arch." fi done fi } pkg_setup() { enewgroup scanner if [[ "${SANE_BACKENDS}" != "" ]]; then use gphoto2 && SANE_BACKENDS="${SANE_BACKENDS} gphoto2" use v4l && SANE_BACKENDS="${SANE_BACKENDS} v4l" fi IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp" if ! use x86 && ! use amd64; then tmp="${SANE_BACKENDS}" for backend in ${IEEE1284_BACKENDS}; do if [[ "${tmp/$backend/}" != "${SANE_BACKENDS}" ]]; then ewarn "You selected a backend which is disabled because it's not usable in your arch." fi done fi } pkg_setup() { enewgroup scanner IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp" if [[ "${SANE_BACKENDS}" != "" ]]; then use gphoto2 && SANE_BACKENDS="${SANE_BACKENDS} gphoto2" use v4l && SANE_BACKENDS="${SANE_BACKENDS} v4l" use usb && SANE_BACKENDS="${SANE_BACKENDS} sm3600" fi if ! use x86 && ! use amd64; then tmp="${SANE_BACKENDS}" for backend in ${IEEE1284_BACKENDS}; do if [[ "${tmp/$backend/}" != "${SANE_BACKENDS}" ]]; then ewarn "You selected a backend which is disabled because it's not usable in your arch." fi done fi } pkg_setup() { enewgroup scanner use gphoto2 && BACKENDS="gphoto2" use v4l && BACKENDS="${BACKENDS} v4l" for backend in ${IUSE_SANE_BACKENDS}; do if use "sane_backends_${backend}"; then BACKENDS="${BACKENDS} ${backend}" fi done } pkg_setup() { if use openmp && [[ $(tc-getCC)$ == *gcc* ]] && ( [[ $(gcc-major-version)$(gcc-minor-version) -lt 42 ]] || ! has_version sys-devel/gcc[openmp] ) then ewarn "You are using gcc and OpenMP is only available with gcc >= 4.2 " ewarn "If you want to build fftw with OpenMP, abort now," ewarn "and switch CC to an OpenMP capable compiler" epause 5 fi } pkg_setup() { ewarn ewarn "Please note: the compilation of enblend needs about 1 GB RAM (and swap)." ewarn } pkg_setup() { if use image-cache && use openmp; then ewarn "the openmp and image-cache USE-flags are mutually exclusive" ewarn "image-cache will be disabled in favour of openmp" fi } pkg_setup() { if use hardened; then ewarn "Due to problems with klibc, it is currently impossible to compile splashutils" ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with" ewarn "-fno-stack-protector. Hardened GCC features will not be used while building" ewarn "the splash kernel helper." fi } pkg_setup() { if use hardened; then ewarn "Due to problems with klibc, it is currently impossible to compile splashutils" ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with" ewarn "-fno-stack-protector. Hardened GCC features will not be used while building" ewarn "the splash kernel helper." fi } pkg_setup() { if use hardened; then ewarn "Due to problems with klibc, it is currently impossible to compile splashutils" ewarn "with 'hardened' GCC flags. As a workaround, the package will be compiled with" ewarn "-fno-stack-protector. Hardened GCC features will not be used while building" ewarn "the splash kernel helper." fi } pkg_setup() { [[ -d ${ROOT}/boot/grub ]] || \ die "${ROOT}/boot/grub does not exist, please make sure you have /boot mounted" } #281242 pkg_setup() { if ! built_with_use media-gfx/splashutils mng then ewarn "MNG support is missing from splashutils. You will not see the" ewarn "service icons as services are starting." fi } pkg_setup() { if ! built_with_use media-gfx/splashutils mng then ewarn "MNG support is missing from splashutils. You will not see the" ewarn "service icons as services are starting." fi } pkg_setup() { if ! built_with_use media-gfx/splashutils mng then ewarn "MNG support is missing from splashutils. You will not see the" ewarn "service icons as services are starting." fi } pkg_setup() { enewgroup drqueue enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue } pkg_setup() { enewgroup drqueue enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue } pkg_setup() { G2CONF="${G2CONF} $(use_with gimp) $(use_with gnome) $(use_with gnome bonobo) $(use_enable nls) --disable-scrollkeeper --with-rpmbuild=/bin/false" } # revision used by upstream # revision used by upstream pkg_setup() { local i if ! use x86 && ( use X || use gimp ); then ewarn ewarn "The iscan application needs CSS x86-only libs and" ewarn "thus can't be built currently. You can still use" ewarn "'xscanimage', 'xsane' or 'kooka' with sane-epkowa" ewarn "backend. But some low-end scanners are also not" ewarn "supported, because they need these x86 libs, too." ewarn fi # Select correct tarball for installed GCC. This is not a perfect # solution and should be expanded to other working GCC versions. einfo "GCC version: $(gcc-fullversion)" case "$(gcc-version)" in 3.4|4.[01234]) # 4.x seems to work (tested with Perfection 3490 PHOTO) MY_A="${SRC_GCC34##*/}" for i in ${BIN_GCC34}; do MY_A="${MY_A} ${i##*/}"; done ;; *) if use x86; then die "Your GCC version is not supported. You need either 3.4 or 4.x!" else MY_A="${SRC_GCC34##*/}" # fallback to GCC 3.4, should not harm. for i in ${BIN_GCC34}; do MY_A="${MY_A} ${i##*/}"; done fi ;; esac } pkg_setup() { # for now, only build svg support when X is enabled, as librsvg # pulls in quite some X dependencies. if use svg && ! use X ; then elog "the svg USE-flag requires the X USE-flag set." elog "disabling svg support for now." fi if use corefonts && ! use truetype ; then elog "corefonts USE-flag requires the truetype USE-flag to be set." elog "disabling corefonts support for now." fi } pkg_setup() { # for now, only build svg support when X is enabled, as librsvg # pulls in quite some X dependencies. if use svg && ! use X ; then elog "the svg USE-flag requires the X USE-flag set." elog "disabling svg support for now." fi if use corefonts && ! use truetype ; then elog "corefonts USE-flag requires the truetype USE-flag to be set." elog "disabling corefonts support for now." fi } pkg_setup() { # for now, only build svg support when X is enabled, as librsvg # pulls in quite some X dependencies. if use svg && ! use X ; then elog "the svg USE-flag requires the X USE-flag set." elog "disabling svg support for now." fi if use corefonts && ! use truetype ; then elog "corefonts USE-flag requires the truetype USE-flag to be set." elog "disabling corefonts support for now." fi } pkg_setup() { # for now, only build svg support when X is enabled, as librsvg # pulls in quite some X dependencies. if use svg && ! use X ; then elog "the svg USE-flag requires the X USE-flag set." elog "disabling svg support for now." fi if use corefonts && ! use truetype ; then elog "corefonts USE-flag requires the truetype USE-flag to be set." elog "disabling corefonts support for now." fi } pkg_setup() { # for now, only build svg support when X is enabled, as librsvg # pulls in quite some X dependencies. if use svg && ! use X ; then elog "the svg USE-flag requires the X USE-flag set." elog "disabling svg support for now." fi if use corefonts && ! use truetype ; then elog "corefonts USE-flag requires the truetype USE-flag to be set." elog "disabling corefonts support for now." fi } # http://fontforge.sf.net/cidmaps.tgz # http://fontforge.sf.net/cidmaps.tgz # http://fontforge.sf.net/cidmaps.tgz pkg_setup() { G2CONF="${G2CONF} $(use_enable debug)" } pkg_setup() { export OLDXSANE if has_version '<=media-gfx/xsane-0.93'; then OLDXSANE="yes" else OLDXSANE="no" fi } pkg_setup() { export OLDXSANE if has_version '<=media-gfx/xsane-0.93'; then OLDXSANE="yes" else OLDXSANE="no" fi } pkg_setup() { G2CONF="${G2CONF} $(use_with exif libjpeg) $(use_with exif libexif) $(use_with dbus) $(use_with lcms cms) $(use_enable python) $(use_with xmp) --enable-libtool-lock --disable-dependency-tracking --disable-scrollkeeper --disable-schemas-install" } pkg_setup() { G2CONF="${G2CONF} $(use_with exif libjpeg) $(use_with exif libexif) $(use_with dbus) $(use_with lcms cms) $(use_enable python) $(use_with xmp) --enable-libtool-lock --disable-dependency-tracking --disable-scrollkeeper --disable-schemas-install" } pkg_setup() { G2CONF="${G2CONF} $(use_enable gphoto2) $(use_enable raw libopenraw) $(use_enable iptc iptcdata) $(use_enable tiff)" } pkg_setup() { G2CONF="${G2CONF} --disable-static --disable-clutter $(use_enable exif exiv2) $(use_enable gstreamer) $(use_enable gnome-keyring) $(use_enable http libsoup) $(use_enable raw libopenraw) $(use_enable test test-suite) $(use_enable tiff)" } pkg_setup() { G2CONF="${G2CONF} $(use_enable gphoto2) $(use_enable raw libopenraw) $(use_enable iptc iptcdata) $(use_enable tiff)" } pkg_setup() { DOCS="AUTHORS README TODO" mycmakeargs="$(cmake-utils_use_enable lapack)" } pkg_setup() { DOCS="AUTHORS README TODO" mycmakeargs="$(cmake-utils_use_enable lapack)" } pkg_setup() { DOCS="AUTHORS README TODO" mycmakeargs="$(cmake-utils_use_enable lapack)" } pkg_setup() { G2CONF="--enable-default-binary \ --with-x \ $(use_with aalib aa) \ $(use_with alsa) \ $(use_enable altivec) \ $(use_with curl libcurl) \ $(use_with dbus) \ $(use_with hal) \ $(use_with gnome gvfs) \ --without-gnomevfs \ $(use_with webkit) \ $(use_with jpeg libjpeg) \ $(use_with exif libexif) \ $(use_with lcms) \ $(use_enable mmx) \ $(use_with mng libmng) \ $(use_with pdf poppler) \ $(use_with png libpng) \ $(use_enable python) \ $(use_enable smp mp) \ $(use_enable sse) \ $(use_with svg librsvg) \ $(use_with tiff libtiff) \ $(use_with wmf)" } pkg_setup() { G2CONF="--enable-default-binary \ --with-x \ $(use_with aalib aa) \ $(use_with alsa) \ $(use_enable altivec) \ $(use_with curl libcurl) \ $(use_with dbus) \ $(use_with hal) \ $(use_with gnome gvfs) \ --without-gnomevfs \ $(use_with webkit) \ $(use_with jpeg libjpeg) \ $(use_with exif libexif) \ $(use_with lcms) \ $(use_enable mmx) \ $(use_with mng libmng) \ $(use_with pdf poppler) \ $(use_with png libpng) \ $(use_enable python) \ $(use_enable smp mp) \ $(use_enable sse) \ $(use_with svg librsvg) \ $(use_with tiff libtiff) \ $(use_with wmf)" } pkg_setup() { G2CONF="${G2CONF} --without-perl" G2CONF="${G2CONF} --enable-poppler-cairo" G2CONF="${G2CONF} --with-xft" G2CONF="${G2CONF} $(use_with gnome gnome-vfs)" G2CONF="${G2CONF} $(use_with inkjar)" G2CONF="${G2CONF} $(use_enable lcms)" G2CONF="${G2CONF} $(use_enable mmx)" G2CONF="${G2CONF} $(use_enable nls)" DOCS="AUTHORS ChangeLog NEWS README*" } pkg_setup() { enewgroup ${PN} enewuser ${PN} -1 -1 -1 ${PN} } pkg_setup() { enewgroup ${PN} enewuser ${PN} -1 -1 -1 ${PN} } pkg_setup() { use threads && { ewarn ewarn "If you're in vserver enviroment, you're probably want to" ewarn "disable threads support because of linux capabilities dependency" ewarn } ebegin "Creating named group and user" enewgroup named 40 enewuser named 40 -1 /etc/bind named eend ${?} } pkg_setup() { use threads && { echo ewarn "If you're in vserver enviroment, you're probably want to" ewarn "disable threads support because of linux capabilities dependency" echo } ebegin "Creating named group and user" enewgroup named 40 enewuser named 40 -1 /etc/bind named eend ${?} } pkg_setup() { filter-flags -ftree-vectorize } pkg_setup() { filter-flags -ftree-vectorize } # dnstouch calls ed to do the dirty work pkg_setup() { if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus then die "For *-compat or mono support you also need to enable the dbus USE flag!" fi if use bookmarks && ! ( use python && use dbus && use gtk ) then die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" fi if use python && ! use dbus && ! use gtk then die "For proper python support you also need the dbus and gtk USE flags!" fi } pkg_setup() { if use python && ! built_with_use dev-lang/python gdbm then die "For python support you need dev-lang/python compiled with gdbm support!" fi if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python then die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" fi if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus then die "For *-compat or mono support you also need to enable the dbus USE flag!" fi if use bookmarks && ! ( use python && use dbus && use gtk ) then die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" fi if use python && ! use dbus && ! use gtk then die "For proper python support you also need the dbus and gtk USE flags!" fi } pkg_setup() { if use python && ! built_with_use dev-lang/python gdbm then die "For python support you need dev-lang/python compiled with gdbm support!" fi if use python && use dbus && ! has_version dev-python/dbus-python && ! built_with_use sys-apps/dbus python then die "For python and dbus support you need sys-apps/dbus compiled with python support or dev-python/dbus-python!" fi if ( use mdnsresponder-compat || use howl-compat || use mono ) && ! use dbus then die "For *-compat or mono support you also need to enable the dbus USE flag!" fi if use bookmarks && ! ( use python && use dbus && use gtk ) then die "For bookmarks support you also need to enable the python, dbus and gtk USE flags!" fi if use python && ! use dbus && ! use gtk then die "For proper python support you also need the dbus and gtk USE flags!" fi } pkg_setup() { enewgroup pdnsd enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd } pkg_setup() { enewgroup pdnsd enewuser pdnsd -1 -1 /var/lib/pdnsd pdnsd } pkg_setup() { # quick-and-dirty workaround for bug #296204 until 2.52 comes out. if use dbus; then if ! use dhcp; then eerror "Currently DBus support requires DHCP to be enabled. Please" eerror "enable DHCP or disable DBUS (see bug #296204)." die "DHCP required for DBUS support" fi fi } pkg_setup() { export PREFIX= export LIBEXECDIR="${PREFIX}/lib/resolvconf" } pkg_setup() { export PREFIX= export LIBEXECDIR="${PREFIX}/lib/resolvconf" } pkg_setup() { # The nofiles group is provided by baselayout enewuser dnscache -1 -1 -1 nofiles enewuser dnslog -1 -1 -1 nofiles enewuser tinydns -1 -1 -1 nofiles } pkg_setup() { # The nofiles group is provided by baselayout enewuser dnscache -1 -1 -1 nofiles enewuser dnslog -1 -1 -1 nofiles enewuser tinydns -1 -1 -1 nofiles } pkg_setup() { # The nofiles group is provided by baselayout enewuser dnscache -1 -1 -1 nofiles enewuser dnslog -1 -1 -1 nofiles enewuser tinydns -1 -1 -1 nofiles } pkg_setup() { # The nofiles group is provided by baselayout enewuser dnscache -1 -1 -1 nofiles enewuser dnslog -1 -1 -1 nofiles enewuser tinydns -1 -1 -1 nofiles } pkg_setup() { enewgroup unbound enewuser unbound -1 -1 /etc/unbound unbound } pkg_setup() { enewgroup unbound enewuser unbound -1 -1 /etc/unbound unbound } #KEYWORDS="" #KEYWORDS="" pkg_setup() { webapp_pkg_setup require_php_with_use hash ldap pcre session xml nls } pkg_setup() { enewgroup rpc 111 enewuser rpc 111 -1 /dev/null rpc } pkg_setup() { enewgroup rpc 111 enewuser rpc 111 -1 /dev/null rpc } pkg_setup() { if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then die "You must have a complete (USE='-minimal') Perl install to use the perl backend!" fi if use samba && ! use ssl ; then eerror "LAN manager passwords need ssl flag set" die "Please set ssl useflag" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then die "You must have a complete (USE='-minimal') Perl install to use the perl backend!" fi if use samba && ! use ssl ; then eerror "LAN manager passwords need ssl flag set" die "Please set ssl useflag" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then die "You must have a complete (USE='-minimal') Perl install to use the perl backend!" fi if use samba && ! use ssl ; then eerror "LAN manager passwords need ssl flag set" die "Please set ssl useflag" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if has_version "<=dev-lang/perl-5.8.8_rc1" && built_with_use dev-lang/perl minimal ; then die "You must have a complete (USE='-minimal') Perl install to use the perl backend!" fi if use samba && ! use ssl ; then eerror "LAN manager passwords need ssl flag set" die "Please set ssl useflag" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if ! use sasl && use cxx ; then die "To build the ldapc++ library you must emerge openldap with sasl support" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if ! use sasl && use cxx ; then die "To build the ldapc++ library you must emerge openldap with sasl support" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { if ! use sasl && use cxx ; then die "To build the ldapc++ library you must emerge openldap with sasl support" fi if use minimal && has_version "net-nds/openldap" && built_with_use net-nds/openldap minimal ; then einfo einfo "Skipping scan for previous datadirs as requested by minimal useflag" einfo else openldap_find_versiontags fi enewgroup ldap 439 enewuser ldap 439 -1 /usr/$(get_libdir)/openldap ldap } pkg_setup() { python_set_active_version 2 } pkg_setup() { java-pkg-2_pkg_setup } pkg_setup() { java-pkg-2_pkg_setup } pkg_setup() { confutils_require_one mode-force mode-owner mode-paranoid if use mode-force; then SUPHP_SETIDMODE="force" elif use mode-owner; then SUPHP_SETIDMODE="owner" else SUPHP_SETIDMODE="paranoid" fi elog elog "Using ${SUPHP_SETIDMODE} mode" elog elog "You can manipulate several configure options of this" elog "ebuild through environment variables:" elog elog "SUPHP_MINUID: Minimum UID, which is allowed to run scripts (default: 1000)" elog "SUPHP_MINGID: Minimum GID, which is allowed to run scripts (default: 100)" elog "SUPHP_APACHEUSER: Name of the user Apache is running as (default: apache)" elog "SUPHP_LOGFILE: Path to suPHP logfile (default: /var/log/apache2/suphp_log)" elog } pkg_setup() { confutils_require_built_with_all www-servers/apache debug } pkg_setup() { confutils_require_one mysql postgres } pkg_setup() { local cnt=0 use mysql && cnt="$((${cnt} + 1))" use postgres && cnt="$((${cnt} + 1))" if [[ "${cnt}" -ne 1 ]] ; then eerror "You have set ${P} to use multiple SQL engines." eerror "I don't know which to use!" eerror "You can use /etc/portage/package.use to set per-package USE flags." eerror "Set it so only one SQL engine type, mysql or postgres, is enabled." die "Please set only one SQL engine type!" fi } pkg_setup() { use debug && append-flags -DPASSENGER_DEBUG } pkg_setup() { use debug && append-flags -DPASSENGER_DEBUG } pkg_setup() { use debug && append-flags -DPASSENGER_DEBUG } pkg_setup() { local OPTS einfo "You can configure various build time options with ENV variables:" einfo einfo " PWAUTH_FAILLOG Path to logfile for login failures" einfo " (default: /var/log/pwauth.log)" einfo " PWAUTH_SERVERUIDS Comma seperated list of UIDs allowed to run pwauth" einfo " (default: 81)" einfo " PWAUTH_MINUID Minimum UID for which authentication will succeed" einfo " (default: 1000)" einfo PWAUTH_FAILLOG="${PWAUTH_FAILLOG:-/var/log/pwauth.log}" PWAUTH_SERVERUIDS="${PWAUTH_SERVERUIDS:-81}" PWAUTH_MINUID="${PWAUTH_MINUID:-1000}" OPTS="${OPTS} -DSERVER_UIDS=${PWAUTH_SERVERUIDS}" OPTS="${OPTS} -DMIN_UNIX_UID=${PWAUTH_MINUID}" if use faillog; then OPTS="${OPTS} -DFAILLOG_PWAUTH" OPTS="${OPTS} -DPATH_FAILLOG=\"\\\"${PWAUTH_FAILLOG}\\\"\"" fi if use pam; then OPTS="${OPTS} -DPAM" LDFLAGS="-lpam" else OPTS="${OPTS} -DSHADOW_SUN" LDFLAGS="-lcrypt" fi if use ignore-case; then OPTS="${OPTS} -DIGNORE_CASE" fi if use domain-aware; then OPTS="${OPTS} -DOMAIN_AWARE" fi CC=$(tc-getCC) CFLAGS="${CFLAGS} ${OPTS}" } pkg_setup() { local OPTS einfo "You can configure various build time options with ENV variables:" einfo einfo " PWAUTH_FAILLOG Path to logfile for login failures" einfo " (default: /var/log/pwauth.log)" einfo " PWAUTH_SERVERUIDS Comma seperated list of UIDs allowed to run pwauth" einfo " (default: 81)" einfo " PWAUTH_MINUID Minimum UID for which authentication will succeed" einfo " (default: 1000)" einfo PWAUTH_FAILLOG="${PWAUTH_FAILLOG:-/var/log/pwauth.log}" PWAUTH_SERVERUIDS="${PWAUTH_SERVERUIDS:-81}" PWAUTH_MINUID="${PWAUTH_MINUID:-1000}" OPTS="${OPTS} -DSERVER_UIDS=${PWAUTH_SERVERUIDS}" OPTS="${OPTS} -DMIN_UNIX_UID=${PWAUTH_MINUID}" if use faillog; then OPTS="${OPTS} -DFAILLOG_PWAUTH" OPTS="${OPTS} -DPATH_FAILLOG=\"\\\"${PWAUTH_FAILLOG}\\\"\"" fi if use pam; then OPTS="${OPTS} -DPAM" LDFLAGS="-lpam" else OPTS="${OPTS} -DSHADOW_SUN" LDFLAGS="-lcrypt" fi if use ignore-case; then OPTS="${OPTS} -DIGNORE_CASE" fi if use domain-aware; then OPTS="${OPTS} -DOMAIN_AWARE" fi CC=$(tc-getCC) CFLAGS="${CFLAGS} ${OPTS}" } #mirror://gentoo/resin-gentoo-patches-${PV}.tar.bz2" pkg_setup() { perl-module_pkg_setup } pkg_setup() { perl-module_pkg_setup } pkg_setup() { confutils_require_built_with_all www-servers/apache debug } pkg_setup() { OLD_IMPLEM="$(eselect opengl show)" if [[ ${OLD_IMPLEM} != xorg-x11 ]]; then # Bug #138920 ewarn "Forcing on xorg-x11 for header sanity..." einfo "If compilation fails run:" einfo "# eselect opengl set ${OLD_IMPLEM}" eselect opengl set xorg-x11 fi } pkg_setup() { # (#158056) /usr/$(get_libdir)/X11/xsm could be a symlink local XSMPATH="${EROOT}usr/$(get_libdir)/X11/xsm" if [[ -L ${XSMPATH} ]]; then einfo "Removing symlink ${XSMPATH}" rm -f ${XSMPATH} || die "failed to remove symlink ${XSMPATH}" fi } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6)" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6) $(use_with pam) --with-default-vt=${DEFAULTVT} --with-xdmconfigdir=/etc/X11/xdm" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6) $(use_with pam) --disable-xprint --with-default-vt=${DEFAULTVT} --with-xdmconfigdir=/etc/X11/xdm" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6)" } pkg_setup() { CONFIGURE_OPTIONS="--without-xf86misc --without-xprint $(use_with dga) $(use_with dmx) $(use_with xinerama) " } pkg_setup() { if [[ ${KERNEL} == "FreeBSD" ]]; then CONFIG="freebsd" elif use x86; then CONFIG="linux-dri-x86" elif use amd64; then CONFIG="linux-dri-x86-64" elif use ppc; then CONFIG="linux-dri-ppc" else CONFIG="linux-dri" fi } pkg_setup() { if [[ ${KERNEL} == "FreeBSD" ]]; then CONFIG="freebsd" elif use x86; then CONFIG="linux-dri-x86" elif use amd64; then CONFIG="linux-dri-x86-64" elif use ppc; then CONFIG="linux-dri-ppc" else CONFIG="linux-dri" fi } pkg_setup() { CONFIGURE_OPTIONS="--with-xinitdir=/etc/X11/xinit" } pkg_setup() { CONFIGURE_OPTIONS="--with-xinitdir=/etc/X11/xinit" } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6) $(use_enable doc devel-docs) $(use_enable syslog) $(use_enable xinetd inetd) --libdir=/etc" enewgroup xfs 33 enewuser xfs 33 -1 /etc/X11/fs xfs } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6) --libdir=/etc" enewgroup xfs 33 enewuser xfs 33 -1 /etc/X11/fs xfs } pkg_setup() { CONFIGURE_OPTIONS="$(use_enable ipv6) --libdir=/etc" enewgroup xfs 33 enewuser xfs 33 -1 /etc/X11/fs xfs } # Most open-source packages use GNU autoconf for configuration. # The default, quickest (and preferred) way of running configure is: #econf # # You could use something similar to the following lines to # configure your package before compilation. The "|| die" portion # at the end will stop the build process if the command fails. # You should use this at the end of critical commands in the build # process. (Hint: Most commands are critical, that is, the build # process should abort if they aren't successful.) #./configure \ # --host=${CHOST} \ # --prefix=/usr \ # --infodir=/usr/share/info \ # --mandir=/usr/share/man || die "./configure failed" # Note the use of --infodir and --mandir, above. This is to make # this package FHS 2.2-compliant. For more information, see # http://www.pathname.com/fhs/ # emake (previously known as pmake) is a script that calls the # standard GNU make with parallel building options for speedier # builds (especially on SMP systems). Try emake first. It might # not work for some packages, because some makefiles have bugs # related to parallelism, in these cases, use emake -j1 to limit # make to a single process. The -j1 is a visual clue to others # that the makefiles have bugs that have been worked around. #emake || die "emake failed" pkg_setup() { filter-ldflags -Wl,-Bdirect -Bdirect } pkg_setup() { filter-ldflags -Wl,-Bdirect -Bdirect } pkg_setup() { FORTRAN="gfortran ifc g77" fortran_pkg_setup export FFLAGS="${FFLAGS:--O2}" [[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \ export FCFLAGS="${FCFLAGS:-${FFLAGS}}" filter-ldflags -Wl,-Bdirect -Bdirect } pkg_setup() { filter-ldflags -Wl,-Bdirect -Bdirect # avoid using existing R installation unset R_HOME } pkg_setup() { FORTRAN="gfortran ifc g77" fortran_pkg_setup export FFLAGS="${FFLAGS:--O2}" [[ ${FORTRANC} = gfortran || ${FORTRANC} = if* ]] && \ export FCFLAGS="${FCFLAGS:-${FFLAGS}}" filter-ldflags -Wl,-Bdirect -Bdirect } pkg_setup() { if /usr/bin/gacutil -l|grep Boo.Lang.Extensions &> /dev/null then eerror "$(best_version ${CATEGORY}/${PN}) has installed Boo.Lang.Extensions into the GAC." eerror "This is a bug, that will cause compilation of ${CATEGORY}/${PF} to fail. It has" eerror "been fixed in this version. For now, it requires that you uninstall" eerror "${CATEGORY}/${PN} before updating." eerror "Please run: emerge -C ${CATEGORY}/${PN} and try again." die "Please run: emerge -C ${CATEGORY}/${PN} and try again." fi # gacutil may generate a root-owned directory in ${T} which makes nant fail afterwards (bug #269907) rm -rf "${T}/.wapi" } pkg_setup() { if /usr/bin/gacutil -l|grep Boo.Lang.Extensions &> /dev/null then eerror "$(best_version ${CATEGORY}/${PN}) has installed Boo.Lang.Extensions into the GAC." eerror "This is a bug, that will cause compilation of ${CATEGORY}/${PF} to fail. It has" eerror "been fixed in this version. For now, it requires that you uninstall" eerror "${CATEGORY}/${PN} before updating." eerror "Please run: emerge -C ${CATEGORY}/${PN} and try again." die "Please run: emerge -C ${CATEGORY}/${PN} and try again." fi } pkg_setup() { CHECKREQS_MEMORY=1024 CHECKREQS_DISK_BUILD=2048 use idb && use ipp && use mkl && CHECKREQS_DISK_BUILD=3072 check_reqs IARCH=ia32 use amd64 && IARCH=intel64 use ia64 && IARCH=ia64 } pkg_setup() { # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" local disk_req="300" use amd64 && disk_req="400" use ia64 && disk_req="350" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { if has_version "= 3.4.3" die "Wrong gcc version" fi fi } pkg_setup() { G2CONF="${G2CONF} $(use_enable vapigen) $(use_enable coverage)" DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README" } pkg_setup() { G2CONF="${G2CONF} $(use_enable vapigen)" } pkg_setup() { G2CONF="${G2CONF} $(use_enable vapigen) $(use_enable coverage)" DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README" } pkg_setup() { # I think this should rather be displayed if you *have* 'ithreads' # in USE if it could break things ... if use ithreads then ewarn "PLEASE NOTE: You are compiling ${MY_P} with" ewarn "interpreter-level threading enabled." ewarn "Threading is not supported by all applications " ewarn "that compile against perl. You use threading at " ewarn "your own discretion. " epause 5 fi if [[ ! -f "${ROOT}/usr/$(get_libdir)/${LIBPERL}" ]] then # Make sure we have libperl installed ... eerror "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}! Make sure that you" eerror "have sys-libs/libperl installed properly ..." die "Cannot find ${ROOT}/usr/$(get_libdir)/${LIBPERL}!" fi dual_scripts } pkg_setup() { LIBPERL="libperl$(get_libname ${MY_PV})" if use ithreads ; then ewarn "THREADS WARNING:" ewarn "PLEASE NOTE: You are compiling ${MY_P} with" ewarn "interpreter-level threading enabled." ewarn "Threading is not supported by all applications " ewarn "that compile against perl. You use threading at " ewarn "your own discretion. " echo fi if has_version "~dev-lang/perl-5.8.8" ; then ewarn "UPDATE THE PERL MODULES:" ewarn "After updating dev-lang/perl you must reinstall" ewarn "the installed perl modules." ewarn "Use: perl-cleaner --all" elif has_version dev-lang/perl ; then # doesnot work #if ! has_version dev-lang/perl[ithreads=,debug=] ; then #if ! has_version dev-lang/perl[ithreads=] || ! has_version dev-lang/perl[debug=] ; then if ( use ithreads && ! has_version dev-lang/perl[ithreads] ) || \ ( ! use ithreads && has_version dev-lang/perl[ithreads] ) || \ ( use debug && ! has_version dev-lang/perl[debug] ) || \ ( ! use debug && has_version dev-lang/perl[debug] ) ; then ewarn "TOGGLED USE-FLAGS WARNING:" ewarn "You changed one of the use-flags ithreads or debug." ewarn "You must rebuild all perl-modules installed." ewarn "Use: perl-cleaner --modules ; perl-cleaner --force --libperl" fi fi dual_scripts } pkg_setup() { if ! has_version dev-lang/mono then eerror "To compile the SVN version of mono, you must first have a working install of" eerror "dev-lang/mono. Preferably one that is not too old relative to the branch you're" eerror "trying to build." die "A working install of dev-lang/mono is required for building the SVN version." fi if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if ! has_version dev-lang/mono then eerror "To compile the SVN version of mono, you must first have a working install of" eerror "dev-lang/mono. Preferably one that is not too old relative to the branch you're" eerror "trying to build." die "A working install of dev-lang/mono is required for building the SVN version." fi if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if ! has_version dev-lang/mono then eerror "To compile the SVN version of mono, you must first have a working install of" eerror "dev-lang/mono. Preferably one that is not too old relative to the branch you're" eerror "trying to build." die "A working install of dev-lang/mono is required for building the SVN version." fi if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" pkg_setup() { if use kernel_linux then get_version if linux_config_exists then if linux_chkconfig_present SYSVIPC then einfo "CONFIG_SYSVIPC is set, looking good." else eerror "If CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." eerror "See http://bugs.gentoo.org/261869 for more info." die "Please set CONFIG_SYSVIPC in your kernel .config" fi else ewarn "Was unable to determine your kernel .config" ewarn "Please note that if CONFIG_SYSVIPC is not set in your kernel .config, mono will hang while compiling." ewarn "See http://bugs.gentoo.org/261869 for more info." fi fi } # mono/man # LICENSE="MIT" # mcs/class/ByteFX.Data # mcs/class/Npgsql # LICENSE="LGPL-2.1" # mcs/class/FirebirdSql.Data.Firebird # LICENSE="IDPL" # mcs/class/ICSharpCode.SharpZipLib # LICENSE="GPL-2-with-linking-exception" # mcs/class/MicrosoftAjaxLibrary # LICENSE="Ms-Pl" # mcs/class/Microsoft.JScript/Microsoft.JScript/TokenStream.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Token.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Parser.cs # mcs/class/Microsoft.JScript/Microsoft.JScript/Decompiler.cs # LICENSE="|| ( NPL-1.1 GPL-2 )" # mcs/tools/mdoc/Mono.Documentation/monodocs2html.cs # LICENSE="GPL-2" # mcs/tools/sqlsharp/SqlSharpCli.cs # LICENSE="GPL-2" # mcs/tools/csharp/repl.cs # LICENSE="|| ( MIT GPL-2 )" # mcs/tools/mono-win32-setup.nsi # LICENSE="GPL-2" #269221 # Note: Slotting Lazarus needs slotting fpc, see DEPEND. #269221 # Note: Slotting Lazarus needs slotting fpc, see DEPEND. pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } pkg_setup() { java-pkg-2_pkg_setup if ! use binary; then debug-print "Checking for sufficient physical RAM" ewarn "This package can fail to build with memory allocation errors in some cases." ewarn "If you are unable to build from sources, please try USE=binary" ewarn "for this package. See bug #181390 for more information." ebeep 3 epause 5 if use amd64; then CHECKREQS_MEMORY="1024" else CHECKREQS_MEMORY="512" fi check_reqs fi } #gcj # ~hppa #gcj #gcj #gcj #chicken clisp guile java lua mono mzscheme ocaml octave perl php pike python R ruby tcl tk" #gcj pkg_setup() { if use force-reg; then while read line; do ewarn "${line}"; done <<'EOF' "This feature not only depends on the machine, but also on the compiler version: On some machines some compiler versions produce incorrect code when certain explicit register declarations are used. So by default -DFORCE_REG is not used." fi } pkg_setup() { use wxwidgets && wxwidgets_pkg_setup } pkg_setup() { use wxwidgets && wxwidgets_pkg_setup } pkg_setup() { use wxwidgets && wxwidgets_pkg_setup } pkg_setup() { # dev-lang/ocaml creates its own objects but calls gcc for linking, which will # results in relocations if gcc wants to create a PIE executable if gcc-specs-pie ; then append-ldflags -nopie ewarn "Ocaml generates its own native asm, you're using a PIE compiler" ewarn "We have appended -nopie to ocaml build options" ewarn "because linking an executable with pie while the objects are not pic will not work" fi } pkg_setup() { # dev-lang/ocaml creates its own objects but calls gcc for linking, which will # results in relocations if gcc wants to create a PIE executable if gcc-specs-pie ; then append-ldflags -nopie ewarn "Ocaml generates its own native asm, you're using a PIE compiler" ewarn "We have appended -nopie to ocaml build options" ewarn "because linking an executable with pie while the objects are not pic will not work" fi } pkg_setup() { # dev-lang/ocaml creates its own objects but calls gcc for linking, which will # results in relocations if gcc wants to create a PIE executable if gcc-specs-pie ; then append-ldflags -nopie ewarn "Ocaml generates its own native asm, you're using a PIE compiler" ewarn "We have appended -nopie to ocaml build options" ewarn "because linking an executable with pie while the objects are not pic will not work" fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${PF} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${PF} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { use tk || return # Note for EAPI-2 lovers: We'd like to show that custom message. # *If* you can make USE dependencies show that, too, feel free to migrate. if (use threads && ! built_with_use dev-lang/tk threads) \ || (! use threads && built_with_use dev-lang/tk threads) ; then eerror eerror "You have Tk support enabled." eerror eerror "Ruby and Tk need the same 'threads' USE flag settings." eerror "Either change the USE flag on dev-lang/ruby or on dev-lang/tk" eerror "and recompile tk." die "threads USE flag mismatch" fi } pkg_setup() { use tk || return # Note for EAPI-2 lovers: We'd like to show that custom message. # *If* you can make USE dependencies show that, too, feel free to migrate. if (use threads && ! built_with_use dev-lang/tk threads) \ || (! use threads && built_with_use dev-lang/tk threads) ; then eerror eerror "You have Tk support enabled." eerror eerror "Ruby and Tk need the same 'threads' USE flag settings." eerror "Either change the USE flag on dev-lang/ruby or on dev-lang/tk" eerror "and recompile tk." die "threads USE flag mismatch" fi } pkg_setup() { ewarn ewarn "It is highly recommended to install >=dev-ruby/rubygems-1.3.1-r30" ewarn "if you have Ruby 1.8 on this system installed, too." ewarn epause 5 } #269221 #269221 pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { if use threads ; then ewarn "" ewarn "PLEASE NOTE: You are compiling ${P} with" ewarn "threading enabled." ewarn "Threading is not supported by all applications" ewarn "that compile against tcl. You use threading at" ewarn "your own discretion." ewarn "" epause 5 fi } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { PHPCONFUTILS_AUTO_USE="" # Make sure the user has specified at least one SAPI einfo "Determining SAPI(s) to build" phpconfutils_require_any " Enabled SAPI:" " Disabled SAPI:" cli cgi apache2 # Threaded Apache2 support if use apache2 ; then has_apache_threads fi # Concurrent PHP Apache2 modules support if use apache2 ; then if use concurrentmodphp ; then ewarn ewarn "'concurrentmodphp' makes it possible to load multiple, differently" ewarn "versioned mod_php's into the same Apache instance. This is done with" ewarn "a few linker tricks and workarounds, and is not guaranteed to always" ewarn "work correctly, so use it at your own risk. Especially, do not use" ewarn "this in conjunction with PHP modules (PECL, ...) other than the ones" ewarn "you may find in the Portage tree or the PHP Overlay!" ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'concurrentmodphp' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'concurrentmodphp', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn ebeep 5 fi fi # fastbuild support if use fastbuild ; then ewarn ewarn "'fastbuild' attempts to build all SAPIs in a single pass." ewarn "This is an experimental feature, so please rebuild PHP" ewarn "without the 'fastbuild' USE flag if you experience" ewarn "any problems, and then reproduce any bugs before filing" ewarn "them in Gentoo's Bugzilla or bugs.php.net." ewarn "If you have conclusive evidence that a bug directly" ewarn "derives from 'fastbuild', please file a bug in" ewarn "Gentoo's Bugzilla only." ewarn fi if use pcre ; then built_with_use dev-libs/libpcre unicode || \ die "Please rebuild dev-libs/libpcre with USE=unicode" fi depend.apache_pkg_setup php5_2-sapi_pkg_setup } pkg_setup() { export BMAKE="$(get_bmake) ${MAKEOPTS}" use amd64 && multilib_toolchain_setup x86 } # zero if snapshot # location for installation of binary version pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." use doc && \ die "USE=\"ghcbootstrap doc\" is not a valid combination" [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi if use openal && ! use opengl; then ewarn "The OpenAL bindings require the OpenGL bindings, however" ewarn "USE=\"-opengl\" so the OpenAL bindings will not be built." ewarn "To build the OpenAL bindings emerge with USE=\"openal opengl\"" fi if use binary; then if use opengl || use openal || use X || use test; then ewarn "The binary build does not include the X, OpenGL" ewarn "or OpenAL bindings and does not support the testsuite." ewarn "If you want those features, emerge with USE=\"-binary\"" fi fi set_config } # non-empty if snapshot pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } # non-empty if snapshot pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } # non-empty if snapshot pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } # location for installation of binary version pkg_setup() { if test $(gcc-major-version) -gt 3; then eerror "ghc-6.2.2 does not work with gcc-4.x, only 3.x or older" eerror "You can either use gcc-config to switch to gcc-3.x" eerror "or you emerge '>=dev-lang/ghc-6.4' or later." die "ghc-6.2.2 does not work with gcc-4.x, only 3.x or older" fi if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." use doc && \ die "USE=\"ghcbootstrap doc\" is not a valid combination" [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi if use binary; then if use opengl || use doc; then ewarn "The binary build does not include the docs or OpenGL bindings" ewarn "If you want those features, emerge with USE=\"-binary\"" fi fi set_config } # zero if snapshot # location for installation of binary version pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." use doc && \ die "USE=\"ghcbootstrap doc\" is not a valid combination" [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } # zero if snapshot # location for installation of binary version pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." elif use ppc64; then eerror "No binary .tbz2 package available yet for these arches:" eerror " ppc64" eerror "Please try emerging with USE=ghcbootstrap and report build" eerror "sucess or failure to the haskell team (haskell@gentoo.org)" die "No binary available for this arch yet, USE=ghcbootstrap" fi set_config } # non-empty if snapshot pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } # non-empty if snapshot pkg_setup() { if use ghcbootstrap; then ewarn "You requested ghc bootstrapping, this is usually only used" ewarn "by Gentoo developers to make binary .tbz2 packages for" ewarn "use with the ghc ebuild's USE=\"binary\" feature." use binary && \ die "USE=\"ghcbootstrap binary\" is not a valid combination." [[ -z $(type -P ghc) ]] && \ die "Could not find a ghc to bootstrap with." fi } pkg_setup() { CHECKREQS_MEMORY=1024 CHECKREQS_DISK_BUILD=1536 use idb && use mkl && CHECKREQS_DISK_BUILD=2048 check_reqs IARCH=ia32 use amd64 && IARCH=intel64 use ia64 && IARCH=ia64 } pkg_setup() { # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" local disk_req="300" use amd64 && disk_req="400" use ia64 && disk_req="350" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { # Check if we have enough RAM and free diskspace CHECKREQS_MEMORY="512" local disk_req="300" use amd64 && disk_req="400" use ia64 && disk_req="350" CHECKREQS_DISK_BUILD=${disk_req} check_reqs } pkg_setup() { if has_version "=sys-devel/gcc-4.1.3 to compile" die "Please select >=sys-devel/gcc-4.1.3" fi # Per configure.ac, shm is disable because of upstream bug #565958 # --enable-shm G2CONF="${G2CONF} --enable-gnomefe --disable-schemas-install --disable-scrollkeeper --disable-static $(use_enable ssl openssl) $(use_enable perl) $(use_enable python) $(use_enable tcl) $(use_enable mmx) $(use_enable ipv6) $(use_enable dbus) $(use_enable nls) $(use_enable sound canberra) $(use_enable libnotify notification)" } pkg_setup() { G2CONF="${G2CONF} --enable-gnomefe --enable-shm --disable-schemas-install --disable-scrollkeeper $(use_enable ssl openssl) $(use_enable perl) $(use_enable python) $(use_enable tcl) $(use_enable mmx) $(use_enable ipv6) $(use_enable dbus) $(use_enable nls) $(use_enable libnotify)" } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi if use theora && ! use dcc_video; then die "USE=\"theora\" requires USE=\"dcc_video\"" fi if use python; then python_set_active_version 2 fi } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi if use theora && ! use dcc_video; then die "USE=\"theora\" requires USE=\"dcc_video\"" fi if use python; then python_set_active_version 2 fi } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi if use theora && ! use dcc_video; then die "USE=\"theora\" requires USE=\"dcc_video\"" fi if use python; then python_set_active_version 2 fi } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi if use theora && ! use dcc_video; then die "USE=\"theora\" requires USE=\"dcc_video\"" fi if use python; then python_set_active_version 2 fi } pkg_setup() { if use audiofile && ! use oss; then die "USE=\"audiofile\" requires USE=\"oss\"" fi if use theora && ! use dcc_video; then die "USE=\"theora\" requires USE=\"dcc_video\"" fi if use python; then python_set_active_version 2 fi } pkg_setup() { webapp_pkg_setup elog "Note that file locations have changed." elog "CGI:IRC will be installed into cgi-bin/${P}" } pkg_setup() { enewgroup ircservices enewuser ircservices -1 -1 -1 ircservices # this is needed, because old ebuilds added the user with ircservices:users usermod -g ircservices ircservices } pkg_setup() { enewgroup ircservices enewuser ircservices -1 -1 -1 ircservices # this is needed, because old ebuilds added the user with ircservices:users usermod -g ircservices ircservices } pkg_setup() { enewuser rbot -1 -1 /var/lib/rbot nobody } pkg_setup() { enewuser rbot -1 -1 /var/lib/rbot nobody } pkg_setup() { enewgroup hybrid enewuser hybrid -1 -1 -1 hybrid } pkg_setup() { enewuser unrealircd } pkg_setup() { enewuser unrealircd } pkg_setup() { if use doc && ! use linguas_en && ! use linguas_es && ! use linguas_fr; then elog "No linguas specified." elog "English documentation will be installed." fi } pkg_setup() { if use doc && ! use linguas_en && ! use linguas_es && ! use linguas_fr; then elog "No linguas specified." elog "English documentation will be installed." fi } pkg_setup() { if ! use gtk && ! use ncurses ; then ewarn "gtk and ncurses are disabled." ewarn "At least one of these use flags are needed to get a front-end." ewarn "Only liblinphone is going to be installed." fi strip-linguas ${IUSE_LINGUAS} } pkg_setup() { if ! use gtk && ! use ncurses ; then ewarn "gtk and ncurses are disabled." ewarn "At least one of these use flags are needed to get a front-end." ewarn "Only liblinphone is going to be installed." fi strip-linguas ${IUSE_LINGUAS} } pkg_setup() { if ! use gtk && ! use ncurses ; then ewarn "gtk and ncurses are disabled." ewarn "At least one of these use flags are needed to get a front-end." ewarn "Only liblinphone is going to be installed." fi strip-linguas ${IUSE_LINGUAS} } pkg_setup() { if ! use gtk && ! use ncurses; then ewarn "gtk and ncurses are disabled." ewarn "At least one of these use flags are needed to get a front-end." ewarn "Only liblinphone is going to be installed." fi strip-linguas ${IUSE_LINGUAS} if [[ -z "${LINGUAS}" ]]; then # no linguas set, using the default one LINGUAS=" " fi } pkg_setup() { if ! use gtk && ! use ncurses ; then ewarn "gtk and ncurses are disabled." ewarn "At least one of these use flags are needed to get a front-end." ewarn "Only liblinphone is going to be installed." fi strip-linguas ${IUSE_LINGUAS} } pkg_setup() { G2CONF="${G2CONF} $(use_enable dbus) $(use_enable sdl) $(use_enable avahi) $(use_enable doc) $(use_enable gnome) --disable-scrollkeeper --disable-schemas-install" } # debug managed by the ebuild pkg_setup() { forceconf="" if use kde; then kde4-base_pkg_setup fi if use kontact && ! use kde; then ewarn "To enable kontact USE flag, you need kde USE flag to be enabled." ewarn "If you need kontact support, please, re-emerge with kde enabled." forceconf="${forceconf} --disable-kab" fi # update scrollkeeper database if doc has been enabled if use doc; then SCROLLKEEPER_UPDATE=1 else SCROLLKEEPER_UPDATE=0 fi # dbus-service: always enable if dbus is enabled, no reason to disable it # scrollkeeper: updates scrollkeeper database # schemas-install: install gconf schemas G2CONF="${G2CONF} --disable-dependency-tracking --disable-maintainer-mode --enable-libtool-lock $(use_enable avahi) $(use_enable dbus) $(use_enable dbus dbus_service) $(use_enable debug gtk-debug) $(use_enable debug opal-debug) $(use_enable doc gdu) $(use_enable doc scrollkeeper) $(use_enable eds) $(use_enable gconf) $(use_enable gconf schemas-install) $(use_enable gnome) $(use_enable gstreamer) $(use_enable kde) $(use_enable kontact kab) $(use_enable ldap) $(use_enable libnotify notify) $(use_enable mmx) $(use_enable nls) $(use_enable shm) $(use_enable static static-libs) $(use_enable xcap) $(use_enable xv) ${forceconf}" } # debug managed by the ebuild pkg_setup() { forceconf="" if use kde; then kde4-base_pkg_setup fi if use kontact && ! use kde; then ewarn "To enable kontact USE flag, you need kde USE flag to be enabled." ewarn "If you need kontact support, please, re-emerge with kde enabled." forceconf="${forceconf} --disable-kab" fi # update scrollkeeper database if doc has been enabled if use doc; then SCROLLKEEPER_UPDATE=1 else SCROLLKEEPER_UPDATE=0 fi # dbus-service: always enable if dbus is enabled, no reason to disable it # scrollkeeper: updates scrollkeeper database # schemas-install: install gconf schemas G2CONF="${G2CONF} --disable-dependency-tracking --disable-maintainer-mode --enable-libtool-lock $(use_enable avahi) $(use_enable dbus) $(use_enable dbus dbus_service) $(use_enable debug gtk-debug) $(use_enable debug opal-debug) $(use_enable doc gdu) $(use_enable doc scrollkeeper) $(use_enable eds) $(use_enable gconf) $(use_enable gconf schemas-install) $(use_enable gnome) $(use_enable gstreamer) $(use_enable h323) $(use_enable kde) $(use_enable kontact kab) $(use_enable ldap) $(use_enable libnotify notify) $(use_enable mmx) $(use_enable nls) $(use_enable shm) $(use_enable static static-libs) $(use_enable xcap) $(use_enable xv) ${forceconf}" } #not big endian safe #82779 #139905 #139905 pkg_setup() { if use threads && ! built_with_use --missing true dev-libs/boost threads then die "Please emerge dev-libs/boost with USE=threads" fi } pkg_setup() { python_set_active_version 2 } pkg_setup() { if has_version 'www-apps/swish-e'; then ewarn "Your old swish-e indexes may not be compatible with this version." fi } pkg_setup() { webapp_pkg_setup confutils_require_any mysql postgres if use mysql; then enewgroup vacation enewuser vacation -1 -1 -1 vacation fi } pkg_setup() { webapp_pkg_setup confutils_require_any mysql postgres if use mysql; then enewgroup vacation enewuser vacation -1 -1 -1 vacation fi } pkg_setup() { webapp_pkg_setup confutils_require_any cvs subversion } pkg_setup() { webapp_pkg_setup confutils_require_any cvs subversion } pkg_setup() { webapp_pkg_setup confutils_require_any cvs subversion } pkg_setup() { webapp_pkg_setup confutils_require_any gd imagemagick netpbm confutils_require_any mysql postgres local php_flags="pcre session" use mysql && php_flags="${php_flags} mysql" use postgres && php_flags="${php_flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ ( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then eerror eerror "${PHP_PKG} needs to be re-installed with all of the following USE flags enabled:" eerror eerror "${php_flags}" eerror use gd && eerror "as well as with either gd or gd-external USE flag enabled." die "Re-install ${PHP_PKG}." fi } pkg_setup() { webapp_pkg_setup confutils_require_any imagemagick netpbm require_php_with_use pcre session } pkg_setup() { webapp_pkg_setup confutils_require_any gd imagemagick netpbm confutils_require_any mysql postgres sqlite local php_flags="pcre session" use mysql && php_flags="${php_flags} mysql" use postgres && php_flags="${php_flags} postgres" use sqlite && php_flags="${php_flags} pdo" if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ ( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then eerror eerror "${PHP_PKG} needs to be re-installed with all of the following USE flags enabled:" eerror eerror "${php_flags}" eerror use gd && eerror "as well as with either gd or gd-external USE flag enabled." die "Re-install ${PHP_PKG}." fi } pkg_setup() { webapp_pkg_setup } pkg_setup() { depend.apache_pkg_setup webapp_pkg_setup if use apache2; then enewuser otrs -1 -1 /dev/null apache fi } pkg_setup() { depend.apache_pkg_setup webapp_pkg_setup if use apache2; then enewuser otrs -1 -1 /dev/null apache fi } pkg_setup() { webapp_pkg_setup elog "PHP needs to be compiled with iconv support" elog "If you are using php-5*, be sure it's compiled with USE=iconv" require_php_with_use imap mysql calendar } pkg_setup() { webapp_pkg_setup elog "PHP needs to be compiled with iconv support" elog "If you are using php-5*, be sure it's compiled with USE=iconv" require_php_with_use imap mysql calendar } pkg_setup() { webapp_pkg_setup elog "PHP needs to be compiled with iconv support" elog "If you are using php-5*, be sure it's compiled with USE=iconv" require_php_with_use imap mysql } pkg_setup() { webapp_pkg_setup has_apache if use nls; then for i in ${LINGUAS}; do if has linguas_${i} ${IUSE}; then if use linguas_${i}; then locallang="${i}" ewarn "${i} from the LINGUAS variable has been set as the" ewarn "default language. This can be overriden on a" ewarn "per-survey basis, or changed in" ewarn "${APACHE_MODULES_CONFDIR}/98_${PN}.conf" ewarn break fi else einfo "LINGUAS=${i} is not supported by ${P}" shift fi done fi if [[ -z ${locallang} ]]; then [[ -n "${LINGUAS}" ]] && ewarn "None of ${LINGUAS} supported." use nls && ewarn "Will use English as default language." locallang="en" fi } # sv pkg_setup() { # unfortunatly, this program only allows for one lang, so only the first # supported entry in LINGUAS is used if use nls ; then for i in ${LINGUAS} ; do if has linguas_${i} ${IUSE} ; then if use linguas_${i} ; then locallang="${i}" ewarn "Due to the limitations of this package, it will be built" ewarn "only with ${i} LINGUAS support. If this is not what" ewarn "you intended, please place the language you desire" ewarn "as _first_ in the list of LINGUAS in /etc/make.conf" ewarn break fi else einfo "LINGUAS=${i} is not supported by ${P}" shift fi done fi if [[ -z ${locallang} ]] ; then use nls && ewarn "None of ${LINGUAS} supported, sorry. Will use English." locallang="en" fi webapp_pkg_setup } pkg_setup() { webapp_pkg_setup local flags="pcre session xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session spl xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session spl xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session spl xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup local flags="pcre session xml" use mysql && flags="${flags} mysql" use postgres && flags="${flags} postgres" if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi # see Bug 204812 if use ocamlopt && use math && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then eerror "In order to build ${PN} with native code support from ocaml" eerror "You first need to have a native code ocaml compiler." eerror "You need to install dev-lang/ocaml with ocamlopt useflag on." die "Please install ocaml with ocamlopt useflag" fi } pkg_setup() { webapp_pkg_setup require_php_with_use pcre } pkg_setup() { webapp_pkg_setup require_php_with_use pcre xml } pkg_setup() { webapp_pkg_setup has_php require_php_with_use xml } pkg_setup() { webapp_pkg_setup has_php require_php_with_use xml } pkg_setup () { webapp_pkg_setup has_php local php_flags="imap session unicode" for f in ldap mssql mysql postgres; do use ${f} && php_flags="${php_flags} ${f}" done if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${php_flags} and either gd or gd-external." fi } pkg_setup () { webapp_pkg_setup has_php local php_flags="imap session unicode" for f in ldap mssql mysql postgres; do use ${f} && php_flags="${php_flags} ${f}" done if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${php_flags} and either gd or gd-external." fi } pkg_setup() { local flags="pcre" for f in msql mysql postgres ; do use ${f} && flags="${flags} ${f}" done if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} || \ ! PHPCHECKNODIE="yes" require_php_with_any_use apache2 cgi ; then die "Re-install ${PHP_PKG} with ${flags} and at least one of apache2 or cgi." fi webapp_pkg_setup } pkg_setup() { HORDE_PHP_FEATURES=" imap ssl session xml nls iconv gd ftp $(use ldap && echo ldap) $(use oracle && echo oci8) $(use crypt && echo crypt) $(use mysql && echo mysql mysqli) $(use postgres && echo postgres) $(use kolab && echo kolab sqlite) " horde_pkg_setup } pkg_setup() { webapp_pkg_setup require_php_with_any_use mysql mysqli require_php_with_use pcre } pkg_setup() { webapp_pkg_setup require_php_with_use mysql } pkg_setup() { HORDE_PHP_FEATURES=" session xml nls crypt iconv gd ssl ftp $(use ldap && echo ldap) $(use oracle && echo oci8) $(use mysql && echo mysql mysqli) $(use postgres && echo postgres) " horde_pkg_setup } pkg_setup() { confutils_require_any mysql postgres sqlite3 enewgroup redmine # home directory is required for SCM. enewuser redmine -1 -1 "${REDMINE_DIR}" redmine } pkg_setup() { confutils_require_any mysql postgres sqlite3 enewgroup redmine # home directory is required for SCM. enewuser redmine -1 -1 "${REDMINE_DIR}" redmine } pkg_setup() { webapp_pkg_setup has_php require_php_with_use pcre } pkg_setup() { webapp_pkg_setup has_php require_php_with_use pcre } pkg_setup() { webapp_pkg_setup has_php require_php_with_use pcre } pkg_setup () { webapp_pkg_setup require_php_with_use mysql zlib xml } pkg_setup() { depend.apache_pkg_setup modperl webapp_pkg_setup } pkg_setup() { webapp_pkg_setup } pkg_setup() { depend.apache_pkg_setup modperl webapp_pkg_setup } pkg_setup() { webapp_pkg_setup } pkg_setup() { depend.apache_pkg_setup modperl webapp_pkg_setup } pkg_setup() { depend.apache_pkg_setup modperl webapp_pkg_setup } pkg_setup () { webapp_pkg_setup local my_flags= use mysql && my_flags="${my_flags} mysql" use postgres && my_flags="${my_flags} postgres" require_php_with_use ${my_flags} } pkg_setup () { webapp_pkg_setup local my_flags= use mysql && my_flags="${my_flags} mysql" use postgres && my_flags="${my_flags} postgres" require_php_with_use ${my_flags} } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then require_php_with_use cli expat else require_php_with_use cli xml fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then require_php_with_use cli expat else require_php_with_use cli xml fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then require_php_with_use cli expat else require_php_with_use cli xml fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then require_php_with_use cli expat else require_php_with_use cli xml fi } pkg_setup() { webapp_pkg_setup require_php_with_use session mysql pcre posix json spl } pkg_setup() { webapp_pkg_setup require_php_with_use session mysql pcre posix json spl } pkg_setup() { require_php_with_use mysql webapp_pkg_setup } pkg_setup () { webapp_pkg_setup local php_flags="imap" use mysql && php_flags="${php_flags} mysql" use postgres && php_flags="${php_flags} postgres" require_php_with_use ${php_flags} } pkg_setup() { webapp_pkg_setup ewarn ewarn "If you are upgrading from an existing _RT2_ installation," ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool," ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz" ewarn "and follow the included instructions." ewarn epause 5 enewgroup rt >/dev/null add_user_rt || die "Could not add user" } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then require_php_with_use expat else require_php_with_use xml fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]] ; then local flags="expat" else local flags="xml" fi if ! PHPCHECKNODIE="yes" require_php_with_use ${flags} \ || ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ; then die "Re-install ${PHP_PKG} with ${flags} and either gd or gd-external" fi } pkg_setup() { webapp_pkg_setup if ! use mysql && ! use postgres && ! use sqlite; then eerror "You must select at least one database backend, by enabling" eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags." die "no database backend selected" fi enewgroup tracd enewuser tracd -1 -1 -1 tracd } pkg_setup() { webapp_pkg_setup if ! use mysql && ! use postgres && ! use sqlite; then eerror "You must select at least one database backend, by enabling" eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags." die "no database backend selected" fi enewgroup tracd enewuser tracd -1 -1 -1 tracd } pkg_setup() { webapp_pkg_setup if ! use mysql && ! use postgres && ! use sqlite; then eerror "You must select at least one database backend, by enabling" eerror "at least one of the 'mysql', 'postgres' or 'sqlite' USE flags." die "no database backend selected" fi enewgroup tracd enewuser tracd -1 -1 -1 tracd } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]]; then require_php_with_use expat tokenizer mysql else require_php_with_use xml tokenizer mysql fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]]; then require_php_with_use expat tokenizer mysql else require_php_with_use xml tokenizer mysql fi } pkg_setup() { webapp_pkg_setup has_php if [[ ${PHP_VERSION} == "4" ]]; then require_php_with_use expat tokenizer mysql else require_php_with_use xml tokenizer mysql fi } pkg_setup() { webapp_pkg_setup require_php_with_use pcre session unicode iconv xml mysql gd zlib hash } pkg_setup() { webapp_pkg_setup require_php_with_use pcre session unicode iconv xml mysql gd zlib } pkg_setup() { webapp_pkg_setup require_php_with_use pcre session unicode iconv xml mysql gd zlib } pkg_setup() { confutils_use_depend_all ads ldap } pkg_setup() { confutils_use_depend_all samba4 ads confutils_use_depend_all ads ldap } # currently, sasl code assumes the presence of kerberosV # currently, sasl code assumes the presence of kerberosV # currently, sasl code assumes the presence of kerberosV # currently, sasl code assumes the presence of kerberosV # currently, sasl code assumes the presence of kerberosV # currently, sasl code assumes the presence of kerberosV pkg_setup() { confutils_use_depend_all ads ldap } #=sys-libs/ldb-0.9.10 No release yet # Should be in sys-libs/ldb, but there's no ldb release yet pkg_setup() { confutils_use_depend_all server python } use swat && SBINPROGS="${SBINPROGS} bin/swat" use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator" use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall" pkg_setup() { confutils_use_depend_all ads ldap confutils_use_depend_all swat server } pkg_setup() { confutils_use_depend_all ads ldap confutils_use_depend_all cifsupcall ads } use swat && SBINPROGS="${SBINPROGS} bin/swat" use winbind && SBINPROGS="${SBINPROGS} bin/winbindd" use ads && use winbind && SBIN_PROGS="${SBINPROGS} bin/winbind_krb5_locator" use ads && SBINPROGS="${SBINPROGS} bin/cifs.upcall" pkg_setup() { confutils_use_depend_all ads ldap confutils_use_depend_all swat server } if use ldb ; then BINPROGS="${BINPROGS} bin/ldbedit bin/ldbsearch bin/ldbadd bin/ldbdel bin/ldbmodify bin/ldbrename"; fi pkg_setup() { confutils_use_depend_all samba4 ads confutils_use_depend_all ads ldap } pkg_setup() { confutils_use_depend_all ads ldap } # bug 258460 # bug 258460 pkg_setup() { echo einfo "gcc-version = $(gcc-version)" echo if [[ "$(gcc-version)" > "4.3" ]]; then ewarn eerror "coda needs gcc < 4.4 to build cleanly" ewarn die "coda needs gcc < 4.4 to build cleanly" fi if ! use client && ! use server; then eerror "Neither client nor server is enabled." eerror "Please enable at least one of these flags!" die "at least one of client or server flags should be on!" fi if ! use coda_layout; then einfo ewarn "FHS compliancy is selected!" ewarn "There is nothing wrong with this, however this is still a special" ewarn "modification to coda code and settings." ewarn "If you are unsire, please add coda_layout to use flags of net-fs/coda" ewarn "and restart the emerge." einfo sleep 5 fi } pkg_setup() { confutils_use_depend_all ads ldap } pkg_setup() { confutils_use_depend_all samba4 ads confutils_use_depend_all ads ldap } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } pkg_setup() { linux-mod_pkg_setup } #268586 #265376 #265376 #265376 pkg_setup() { # Pedantic is currently broken G2CONF="${G2CONF} --localstatedir=/var --disable-ansi --enable-man-pages $(use_enable debug verbose-mode)" } pkg_setup() { # Pedantic is currently broken G2CONF="${G2CONF} --localstatedir=/var --disable-ansi --enable-man-pages $(use_enable debug verbose-mode)" } pkg_setup() { if [[ ${KV:0:3} != "2.4" ]] ; then eerror "Sorry, but mondo only works with linux-2.4." eerror "http://bugs.gentoo.org/show_bug.cgi?id=72467" die "kernel not supported" fi } pkg_setup() { has_version '>=sys-kernel/linux-headers-2.6.0' && \ einfo "Linux 2.6 kernel headers detected, not building audioctl" } pkg_setup() { enewgroup locate } pkg_setup() { enewgroup locate } pkg_setup() { enewgroup locate } pkg_setup() { CONFIG_CHECK="PARPORT" linux-mod_pkg_setup BUILD_TARGETS="all" ECONF_PARAMS="--with-linux=${KERNEL_DIR}" MODULE_NAMES="pcfclock(::${S}/linux)" MODULESD_PCFCLOCK_ENABLED="yes" MODULESD_PCFCLOCK_EXAMPLES=( "pcfclock parport=0,none,none" ) MODULESD_PCFCLOCK_ALIASES=( "char-major-181 pcfclock" "/dev/pcfclock0 char-major-181" "/dev/pcfclock1 char-major-181" "/dev/pcfclock2 char-major-181" ) } pkg_setup() { CONFIG_CHECK="PARPORT" linux-mod_pkg_setup BUILD_TARGETS="all" ECONF_PARAMS="--with-linux=${KERNEL_DIR}" MODULE_NAMES="pcfclock(::${S}/linux)" MODULESD_PCFCLOCK_ENABLED="yes" MODULESD_PCFCLOCK_EXAMPLES=( "pcfclock parport=0,none,none" ) MODULESD_PCFCLOCK_ALIASES=( "char-major-181 pcfclock" "/dev/pcfclock0 char-major-181" "/dev/pcfclock1 char-major-181" "/dev/pcfclock2 char-major-181" ) } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { enewgroup utmp 406 } pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } pkg_setup() { [[ -n ${VAPIER_LOVES_YOU} ]] && maint_pkg_create ; } pkg_setup() { if use hal && use usb; then ewarn "The usb and hal USE flags cannot be enabled at the same time" ewarn "Disabling the effect of USE=usb" fi } pkg_setup() { if use hal && use usb; then ewarn "The usb and hal USE flags cannot be enabled at the same time" ewarn "Disabling the effect of USE=usb" fi } pkg_setup() { if use hal && use usb; then ewarn "The usb and hal USE flags cannot be enabled at the same time" ewarn "Disabling the effect of USE=usb" fi } pkg_setup() { PYTHON_VERSIONS= validate_PYTHON_ABIS local version for version in ${PYTHON_ABIS}; do PYTHON_VERSIONS+="${PYTHON_VERSIONS:+ }python${version}" done } #freeipmi? ( sys-libs/freeipmi ) pkg_setup() { export DEBUG=$(usev debug) export MKPAM=$(usev pam) export MKTERMCAP=$(usev ncurses) } pkg_setup() { export DEBUG=$(usev debug) export MKPAM=$(usev pam) export MKTERMCAP=$(usev ncurses) } pkg_setup() { export DEBUG=$(usev debug) export MKPAM=$(usev pam) export MKTERMCAP=$(usev ncurses) } pkg_setup() { enewgroup messagebus enewuser messagebus -1 "-1" -1 messagebus } pkg_setup() { enewgroup messagebus enewuser messagebus -1 "-1" -1 messagebus } # used in the makefile #KEYWORDS="" if [[ ${PV} == *.*.*.* ]] ; then else fi #KEYWORDS="" if [[ ${PV} == *.*.*.* ]] ; then else fi #KEYWORDS="" if [[ ${PV} == *.*.*.* ]] ; then else fi #KEYWORDS="" if [[ ${PV} == *.*.*.* ]] ; then else fi #KEYWORDS="" if [[ ${PV} == *.*.*.* ]] ; then else fi pkg_setup() { if [ -z "$(grep V86D /usr/lib/klibc/include/linux/connector.h)" ]; then eerror "You need to compile klibc against a kernel tree patched with uvesafb" eerror "prior to merging this package." die "Kernel not patched with uvesafb." fi linux-info_pkg_setup } pkg_setup() { if [ -z "$(grep V86D /usr/$(get_libdir)/klibc/include/linux/connector.h)" ]; then eerror "You need to compile klibc against a kernel tree patched with uvesafb" eerror "prior to merging this package." die "Kernel not patched with uvesafb." fi linux-info_pkg_setup } pkg_setup() { if ! use python3 && ! compatible_python_is_selected ; then ewarn "Attempting to select a compatible default python interpreter" local x success=0 for x in /usr/bin/python2.* ; do x=${x#/usr/bin/python2.} if [[ $x -ge 6 ]] 2>/dev/null ; then eselect python set python2.$x if compatible_python_is_selected ; then elog "Default python interpreter is now set to python-2.$x" success=1 break fi fi done if [ $success != 1 ] ; then eerror "Unable to select a compatible default python interpreter!" die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." fi fi if use python3; then python_set_active_version 3 fi } pkg_setup() { if ! use python3 && ! compatible_python_is_selected ; then ewarn "Attempting to select a compatible default python interpreter" local x success=0 for x in /usr/bin/python2.* ; do x=${x#/usr/bin/python2.} if [[ $x -ge 6 ]] 2>/dev/null ; then eselect python set python2.$x if compatible_python_is_selected ; then elog "Default python interpreter is now set to python-2.$x" success=1 break fi fi done if [ $success != 1 ] ; then eerror "Unable to select a compatible default python interpreter!" die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." fi fi if use python3; then python_set_active_version 3 fi } pkg_setup() { if ! use python3 && ! compatible_python_is_selected ; then ewarn "Attempting to select a compatible default python interpreter" local x success=0 for x in /usr/bin/python2.* ; do x=${x#/usr/bin/python2.} if [[ $x -ge 6 ]] 2>/dev/null ; then eselect python set python2.$x if compatible_python_is_selected ; then elog "Default python interpreter is now set to python-2.$x" success=1 break fi fi done if [ $success != 1 ] ; then eerror "Unable to select a compatible default python interpreter!" die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." fi fi if use python3; then python_set_active_version 3 fi } pkg_setup() { if ! use python3 && ! compatible_python_is_selected ; then ewarn "Attempting to select a compatible default python interpreter" local x success=0 for x in /usr/bin/python2.* ; do x=${x#/usr/bin/python2.} if [[ $x -ge 6 ]] 2>/dev/null ; then eselect python set python2.$x if compatible_python_is_selected ; then elog "Default python interpreter is now set to python-2.$x" success=1 break fi fi done if [ $success != 1 ] ; then eerror "Unable to select a compatible default python interpreter!" die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." fi fi if use python3; then python_set_active_version 3 fi } pkg_setup() { if ! use python3 && ! compatible_python_is_selected ; then ewarn "Attempting to select a compatible default python interpreter" local x success=0 for x in /usr/bin/python2.* ; do x=${x#/usr/bin/python2.} if [[ $x -ge 6 ]] 2>/dev/null ; then eselect python set python2.$x if compatible_python_is_selected ; then elog "Default python interpreter is now set to python-2.$x" success=1 break fi fi done if [ $success != 1 ] ; then eerror "Unable to select a compatible default python interpreter!" die "This version of portage requires at least python-2.6 to be selected as the default python interpreter (see \`eselect python --help\`)." fi fi if use python3; then python_set_active_version 3 fi } pkg_setup() { if ! built_with_use dev-libs/libxml2 python then eerror "dev-libs/libxml2 wasn't built with the python use flag set!" eerror "Add python to USE in /etc/make.conf and run" eerror "'emerge --oneshot dev-libs/libxml2'" die "need dev-libs/libxml2 built with python support." fi if ! built_with_use app-arch/rpm python then eerror "app-arch/rpm wasn't built with the python use flag set!" eerror "Add python to USE in /etc/make.conf and run" eerror "'emerge --oneshot app-arch/rpm'" die "need app-arch/rpm built with python support." fi } pkg_setup() { if [[ -n $(egetent group slocate) ]] && [[ -z $(egetent group locate) ]] ; then eerror "The 'slocate' group has been renamed to 'locate'." eerror "You seem to already have a 'slocate' group." eerror "Please rename it:" eerror "groupmod -n locate slocate" die "Change 'slocate' to 'locate'" fi enewgroup locate 245 } pkg_setup() { if [[ -n $(egetent group slocate) ]] && [[ -z $(egetent group locate) ]] ; then eerror "The 'slocate' group has been renamed to 'locate'." eerror "You seem to already have a 'slocate' group." eerror "Please rename it:" eerror "groupmod -n locate slocate" die "Change 'slocate' to 'locate'" fi enewgroup locate 245 } pkg_setup() { if [[ -n $(egetent group slocate) ]] && [[ -z $(egetent group locate) ]] ; then eerror "The 'slocate' group has been renamed to 'locate'." eerror "You seem to already have a 'slocate' group." eerror "Please rename it:" eerror "groupmod -n locate slocate" die "Change 'slocate' to 'locate'" fi enewgroup locate 245 } pkg_setup() { if [[ -n "${UCSPI_TCP_PATCH_DIR}" ]]; then eerror eerror "The UCSPI_TCP_PATCH_DIR variable for custom patches" eerror "has been removed from ${PN}. If you need custom patches" eerror "you should create a copy of this ebuild in an overlay." eerror die "UCSPI_TCP_PATCH_DIR is not supported anymore" fi } pkg_setup() { enewgroup plugdev } pkg_setup() { enewgroup plugdev } pkg_setup() { linux-info_pkg_setup kernel_is lt 2 6 13 && ewarn "${P} requires at least kernel 2.6.13." } pkg_setup() { linux-info_pkg_setup if kernel_is lt 2 6 13; then eerror eerror "${P} requires at least kernel 2.6.13." eerror die "${P} requires at least kernel 2.6.13." fi } pkg_setup() { linux-info_pkg_setup kernel_is lt 2 6 13 && ewarn "${P} requires at least kernel 2.6.13." } pkg_setup() { G2CONF="${G2CONF} --disable-static $(use_enable nautilus)" } pkg_setup() { G2CONF="${G2CONF} --disable-static $(use_enable nautilus)" } pkg_setup() { # This package is aimed primarily at Cobalt Microserver systems. Mips originally, but it # is reported to work on x86-based systems as well. if [ "${PROFILE_ARCH}" != "cobalt" ]; then echo "" ewarn "This package is only for Cobalt Microserver systems. Its use on other types of" ewarn "hardware is untested." echo "" fi } pkg_setup() { ewarn "This package is designed for use on the LiveCD only and will do " ewarn "unspeakably horrible and unexpected things on a normal system." ewarn "YOU HAVE BEEN WARNED!!!" } pkg_setup() { linux-info_pkg_setup if ! linux_config_src_exists; then CONFIG_CHECK="I2C_SENSOR HWMON I2C CONFIG_I2C_CHARDEV" ewarn "Unable to check for the following kernel config options due" ewarn "to absence of any configured kernel sources or compiled" ewarn "config:" for config in ${CONFIG_CHECK}; do ewarn " - ${config#\~}" done ewarn "You're on your own to make sure they are set if needed." elif kernel_is 2 4; then if use ppc || use amd64; then eerror eerror "${P} does not support kernel 2.4.x under PPC and AMD64." eerror eerror "${P} does not support kernel 2.4.x under PPC and AMD64." elif ! has_version =sys-apps/lm_sensors-modules-${PV}; then eerror eerror "${P} needs sys-apps/lm_sensors-modules-${PV} to be installed" eerror "for kernel 2.4.x" eerror eerror "sys-apps/lm_sensors-modules-${PV} not installed" fi else if kernel_is lt 2 6 14 && ! (linux_chkconfig_present I2C_SENSOR); then eerror eerror "${P} requires CONFIG_I2C_SENSOR to be enabled for non-2.4.x kernels." eerror ewarn "CONFIG_I2C_SENSOR not detected" elif kernel_is gt 2 6 13 && ! (linux_chkconfig_present HWMON); then eerror eerror "${P} requires CONFIG_HWMON to be enabled for 2.6.14+ kernels." eerror ewarn "CONFIG_HWMON not detected" fi if ! (linux_chkconfig_present I2C_CHARDEV); then ewarn ewarn "sensors-detect requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels." ewarn fi if ! (linux_chkconfig_present I2C); then ewarn ewarn "${P} requires CONFIG_I2C to be enabled for non-2.4.x kernels for most sensors." ewarn fi fi } pkg_setup() { linux-info_pkg_setup if kernel_is 2 4; then if use ppc || use amd64; then eerror eerror "${P} does not support kernel 2.4.x under PPC and AMD64." eerror die "${P} does not support kernel 2.4.x under PPC and AMD64." elif ! has_version =sys-apps/lm_sensors-modules-${PV}; then eerror eerror "${P} needs sys-apps/lm_sensors-modules-${PV} to be installed" eerror "for kernel 2.4.x" eerror die "sys-apps/lm_sensors-modules-${PV} not installed" fi else if kernel_is lt 2 6 14 && ! (linux_chkconfig_present I2C_SENSOR); then eerror eerror "${P} requires CONFIG_I2C_SENSOR to be enabled for non-2.4.x kernels." eerror die "CONFIG_I2C_SENSOR not detected" elif kernel_is gt 2 6 13 && ! (linux_chkconfig_present HWMON); then eerror eerror "${P} requires CONFIG_HWMON to be enabled for 2.6.14+ kernels." eerror die "CONFIG_HWMON not detected" fi if ! (linux_chkconfig_present I2C_CHARDEV); then ewarn ewarn "sensors-detect requires CONFIG_I2C_CHARDEV to be enabled for non-2.4.x kernels." ewarn fi if ! (linux_chkconfig_present I2C); then ewarn ewarn "${P} requires CONFIG_I2C to be enabled for non-2.4.x kernels for most sensors." ewarn fi fi } pkg_setup() { if use kernel_linux ; then if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer" if kernel_is lt 2 6 23 && use acpi ; then check_acpi_proc fi fi check_hotplug_net check_inotify fi # http://devmanual.gentoo.org/ebuild-writing/functions/ # http://bugs.gentoo.org/show_bug.cgi?id=191605 # Create groups for hotplugging and HAL enewgroup haldaemon enewgroup plugdev # HAL drops priviledges by default now ... # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) if use kernel_linux; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} elif use kernel_FreeBSD; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} fi # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} # If users have a problem with this, let them file a bug if [[ ${ROOT} == / ]] ; then if use kernel_linux; then usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon elif use kernel_FreeBSD; then pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD} fi fi } pkg_setup() { if use kernel_linux ; then if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer" if kernel_is lt 2 6 23 && use acpi ; then check_acpi_proc fi fi check_hotplug_net check_inotify fi # http://devmanual.gentoo.org/ebuild-writing/functions/ # http://bugs.gentoo.org/show_bug.cgi?id=191605 # Create groups for hotplugging and HAL enewgroup haldaemon enewgroup plugdev # HAL drops priviledges by default now ... # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) if use kernel_linux; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} elif use kernel_FreeBSD; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} fi # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} # If users have a problem with this, let them file a bug if [[ ${ROOT} == / ]] ; then if use kernel_linux; then usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon elif use kernel_FreeBSD; then pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD} fi fi } pkg_setup() { if use kernel_linux ; then if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer" if kernel_is lt 2 6 23 && use acpi ; then check_acpi_proc fi fi check_hotplug_net check_inotify fi # http://devmanual.gentoo.org/ebuild-writing/functions/ # http://bugs.gentoo.org/show_bug.cgi?id=191605 # Create groups for hotplugging and HAL enewgroup haldaemon enewgroup plugdev # HAL drops priviledges by default now ... # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) if use kernel_linux; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} elif use kernel_FreeBSD; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} fi # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} # If users have a problem with this, let them file a bug if [[ ${ROOT} == / ]] ; then if use kernel_linux; then usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon elif use kernel_FreeBSD; then pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD} fi fi } pkg_setup() { if use kernel_linux ; then if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer" if kernel_is lt 2 6 23 && use acpi ; then check_acpi_proc fi fi check_hotplug_net check_inotify fi # http://devmanual.gentoo.org/ebuild-writing/functions/ # http://bugs.gentoo.org/show_bug.cgi?id=191605 # Create groups for hotplugging and HAL enewgroup haldaemon enewgroup plugdev # HAL drops priviledges by default now ... # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) if use kernel_linux; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} elif use kernel_FreeBSD; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} fi # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} # If users have a problem with this, let them file a bug if [[ ${ROOT} == / ]] ; then if use kernel_linux; then usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon elif use kernel_FreeBSD; then pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD} fi fi } pkg_setup() { if use kernel_linux ; then if [[ -e "${ROOT}/usr/src/linux/.config" ]] ; then kernel_is ge 2 6 19 || ewarn "HAL requires a kernel version 2.6.19 or newer" if kernel_is lt 2 6 23 && use acpi ; then check_acpi_proc fi fi check_hotplug_net check_inotify fi # http://devmanual.gentoo.org/ebuild-writing/functions/ # http://bugs.gentoo.org/show_bug.cgi?id=191605 # Create groups for hotplugging and HAL enewgroup haldaemon enewgroup plugdev # HAL drops priviledges by default now ... # ... so we must make sure it can read disk/cdrom info (ie. be in ${HALDAEMON_GROUPS} groups) if use kernel_linux; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_LINUX} elif use kernel_FreeBSD; then enewuser haldaemon -1 "-1" /dev/null ${HALDAEMON_GROUPS_FREEBSD} fi # Make sure that the haldaemon user is in the ${HALDAEMON_GROUPS} # If users have a problem with this, let them file a bug if [[ ${ROOT} == / ]] ; then if use kernel_linux; then usermod -G ${HALDAEMON_GROUPS_LINUX} haldaemon elif use kernel_FreeBSD; then pw usermod haldaemon -G ${HALDAEMON_GROUPS_FREEBSD} fi fi } pkg_setup() { linux-mod_pkg_setup if kernel_is gt 2 4; then eerror eerror "This package only works with linux-2.4.x" eerror "For newer kernels, please use the in-kernel PCMCIA drivers." eerror die "linux-${KV_FULL} detected" fi if (linux_chkconfig_present PCMCIA || linux_chkconfig_present PCCARD); then eerror eerror "This package requires the in-kernel PCMCIA drivers to be disabled." eerror die "Kernel PCMCIA support detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 4 10; then eerror "${P} requires kernel 2.4.10 or later" die "${P} requires kernel 2.4.10 or later" fi if kernel_is gt 2 4; then eerror "${P} is only needed for kernel 2.4.x" eerror "You need to use the in-kernel I2C drivers for later kernels." die "Non 2.4.x kernel detected" fi if linux_chkconfig_present I2C; then eerror "${P} requires kernel CONFIG_I2C to be disabled." die "Kernel with CONFIG_I2C detected" fi } pkg_setup() { enewgroup man 15 enewuser man 13 -1 /usr/share/man man } pkg_setup() { enewgroup man 15 enewuser man 13 -1 /usr/share/man man } #252054 #261019 pkg_setup() { if kernel_is 2 6 ; then eerror "This kernel module is only for 2.4 kernels." eerror "See ${HOMEPAGE} for 2.6 support." die "2.4 kernel only" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 5 && linux_chkconfig_present PCMCIA; then ewarn ewarn "The recommended configuration for linux-2.4.x is to disable" ewarn "CONFIG_PCMCIA in the kernel and use the drivers from" ewarn "sys-apps/pcmcia-cs-modules." ewarn elif kernel_is gt 2 4 && ! (linux_chkconfig_present PCMCIA || linux_chkconfig_present PCCARD); then eerror eerror "The package requires the in-kernel PCMCIA drivers to be enabled" eerror "for kernel 2.6.x." eerror die "linux-${KV_FULL} without PCMCIA support detected" fi } pkg_setup() { linux-mod_pkg_setup if kernel_is lt 2 5 && linux_chkconfig_present PCMCIA; then ewarn ewarn "The recommended configuration for linux-2.4.x is to disable" ewarn "CONFIG_PCMCIA in the kernel and use the drivers from" ewarn "sys-apps/pcmcia-cs-modules." ewarn elif kernel_is gt 2 4 && ! (linux_chkconfig_present PCMCIA || linux_chkconfig_present PCCARD); then eerror eerror "The package requires the in-kernel PCMCIA drivers to be enabled" eerror "for kernel 2.6.x." eerror die "linux-${KV_FULL} without PCMCIA support detected" fi } pkg_setup() { [[ ${ROOT} = "/" ]] && die "refusing to emerge to /" } #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" #KEYWORDS="" pkg_setup() { enewgroup man 15 enewuser man 13 -1 /usr/share/man man } pkg_setup() { enewgroup man 15 enewuser man 13 -1 /usr/share/man man } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio && ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user replace-flags -O? -O2 } pkg_setup() { if use inquisitio && ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user replace-flags -O? -O2 } pkg_setup() { if use inquisitio && ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user replace-flags -O? -O2 } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } pkg_setup() { if use inquisitio || use qa; then if ! built_with_use dev-libs/libpcre cxx ; then eerror "Paludis needs dev-libs/libpcre built with C++ support" eerror "Please build dev-libs/libpcre with USE=cxx support" die "Rebuild dev-libs/libpcre with USE=cxx" fi fi if use python-bindings && \ ! built_with_use --missing true dev-libs/boost python; then eerror "With USE python-bindings you need boost build with the python" eerror "use flag." die "Rebuild dev-libs/boost with USE python" fi create-paludis-user } # need to consult with upstream still # need to consult with upstream still pkg_setup() { # Pedantic is currently broken G2CONF="${G2CONF} --localstatedir=/var --disable-ansi --enable-man-pages $(use_enable debug verbose-mode) " # ACPI is only availably on amd64/x86 if use amd64 || use x86; then check_battery fi } pkg_setup() { # Pedantic is currently broken G2CONF="${G2CONF} --localstatedir=/var --disable-ansi --disable-static --enable-man-pages $(use_enable debug verbose-mode) $(use_enable test tests) " # ACPI is only availably on amd64/x86 if use amd64 || use x86; then check_battery fi } pkg_setup() { G2CONF="${G2CONF} --disable-static --localstatedir=/var --enable-ansi --enable-man-pages" } #KEYWORDS="" #KEYWORDS="" pkg_setup() { games_pkg_setup java-pkg-2_pkg_setup } pkg_setup() { G2CONF="${G2CONF} $(use_enable accessibility all-themes) --disable-test-themes --enable-icon-mapping" } pkg_setup() { G2CONF="${G2CONF} $(use_enable accessibility all-themes) --enable-legacy-icon-mapping" } pkg_setup() { G2CONF="${G2CONF} $(use_enable accessibility all-themes) --disable-test-themes --enable-icon-mapping" } pkg_setup() { DOCS="AUTHORS ChangeLog NEWS README" XFCONF="--disable-dependency-tracking" } pkg_setup() { DOCS="AUTHORS ChangeLog README TODO" } pkg_setup() { G2CONF="${G2CONF} --enable-animation $(use_enable lua) $(use_with lua system-lua)" use accessibility || G2CONF="${G2CONF} --disable-hc" } pkg_setup() { G2CONF="${G2CONF} --enable-animation $(use_enable lua) $(use_with lua system-lua)" use accessibility || G2CONF="${G2CONF} --disable-hc" } pkg_setup() { G2CONF="${G2CONF} --enable-animation $(use_enable lua) $(use_with lua system-lua)" use accessibility || G2CONF="${G2CONF} --disable-hc" } pkg_setup() { G2CONF="--enable-animation --enable-lua" use accessibility || G2CONF="${G2CONF} --disable-hc" } pkg_setup() { confutils_use_depend_all windeco kde use kde && kde4-base_pkg_setup } pkg_setup() { confutils_use_depend_all windeco kde use kde && kde4-base_pkg_setup } pkg_setup() { confutils_use_depend_all windeco kde use kde && kde4-base_pkg_setup } pkg_setup() { confutils_use_depend_all windeco kde use kde && kde4-base_pkg_setup } pkg_setup() { confutils_use_depend_all windeco kde use kde && kde4-base_pkg_setup } pkg_setup() { G2CONF="${G2CONF} --enable-icon-mapping" } pkg_setup() { G2CONF="${G2CONF} --enable-icon-mapping" } pkg_setup() { G2CONF="${G2CONF} --enable-icon-mapping" } pkg_setup() { mydest="/usr/share/icons/${PN}" } pkg_setup() { amanda_variable_setup enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}" enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}" } pkg_setup() { # Now add users if needed [ -n "${AMANDA_DBMODE}" -a "${AMANDA_DBMODE}" != "text" ] && \ ewarn "Using db or gdbm modes for the database is no longer supported." amanda_variable_setup enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}" enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}" } pkg_setup() { # Now add users if needed [ -n "${AMANDA_DBMODE}" -a "${AMANDA_DBMODE}" != "text" ] && \ ewarn "Using db or gdbm modes for the database is no longer supported." amanda_variable_setup enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}" enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}" } pkg_setup() { # Now add users if needed [ -n "${AMANDA_DBMODE}" -a "${AMANDA_DBMODE}" != "text" ] && \ ewarn "Using db or gdbm modes for the database is no longer supported." amanda_variable_setup enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}" enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}" } pkg_setup() { # Now add users if needed [ -n "${AMANDA_DBMODE}" -a "${AMANDA_DBMODE}" != "text" ] && \ ewarn "Using db or gdbm modes for the database is no longer supported." amanda_variable_setup enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}" enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}" } pkg_setup() { local dbnum declare -i dbnum=0 if ! useq bacula-clientonly; then if useq mysql; then export mydbtype='mysql' let dbnum++ fi if useq postgres; then export mydbtype='postgresql' let dbnum++ fi if useq sqlite; then export mydbtype='sqlite' let dbnum++ fi if useq sqlite3; then export mydbtype='sqlite3' let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then eerror eerror "To use ${P} it is required to set a database in the USE flags." eerror "Supported databases are mysql, postgresql, sqlite, sqlite3" eerror die "No database type selected." elif [[ "${dbnum}" -gt 1 ]]; then eerror eerror "You have set ${P} to use multiple database types." eerror "I don't know which to set as the default!" eerror "You can use /etc/portage/package.use to set per-package USE flags" eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3" eerror die "Multiple database types selected." fi fi # create the daemon group and user if [ -z "$(egetent group bacula)" ]; then enewgroup bacula einfo einfo "The group 'bacula' has been created. Any users you add to this" einfo "group have access to files created by the daemons." einfo fi if ! useq bacula-clientonly; then if [ -z "$(egetent passwd bacula)" ]; then enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw einfo einfo "The user 'bacula' has been created. Please see the bacula manual" einfo "for information about running bacula as a non-root user." einfo fi fi } pkg_setup() { local dbnum declare -i dbnum=0 if ! useq bacula-clientonly; then if useq mysql; then export mydbtype='mysql' let dbnum++ fi if useq postgres; then export mydbtype='postgresql' let dbnum++ fi if useq sqlite; then export mydbtype='sqlite' let dbnum++ fi if useq sqlite3; then export mydbtype='sqlite3' let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then eerror eerror "To use ${P} it is required to set a database in the USE flags." eerror "Supported databases are mysql, postgresql, sqlite, sqlite3" eerror die "No database type selected." elif [[ "${dbnum}" -gt 1 ]]; then eerror eerror "You have set ${P} to use multiple database types." eerror "I don't know which to set as the default!" eerror "You can use /etc/portage/package.use to set per-package USE flags" eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3" eerror die "Multiple database types selected." fi fi # create the daemon group and user if [ -z "$(egetent group bacula)" ]; then enewgroup bacula einfo einfo "The group 'bacula' has been created. Any users you add to this" einfo "group have access to files created by the daemons." einfo fi if ! useq bacula-clientonly; then if [ -z "$(egetent passwd bacula)" ]; then enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw einfo einfo "The user 'bacula' has been created. Please see the bacula manual" einfo "for information about running bacula as a non-root user." einfo fi fi } pkg_setup() { local dbnum declare -i dbnum=0 if ! use bacula-clientonly; then if use mysql; then export mydbtype=mysql let dbnum++ fi if use postgres; then export mydbtype=postgresql let dbnum++ fi if use sqlite3; then export mydbtype=sqlite3 let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then eerror eerror "To use ${P} it is required to set a database in the USE flags." eerror "Supported databases are mysql, postgresql, sqlite3" eerror die "No database type selected." elif [[ "${dbnum}" -gt 1 ]]; then eerror eerror "You have set ${P} to use multiple database types." eerror "I don't know which to set as the default!" eerror "You can use /etc/portage/package.use to set per-package USE flags" eerror "Set it so only one database type, mysql, postgres, sqlite3" eerror die "Multiple database types selected." fi fi # create the daemon group and user if [ -z "$(egetent group bacula 2>/dev/null)" ]; then enewgroup bacula || die einfo einfo "The group 'bacula' has been created. Any users you add to this" einfo "group have access to files created by the daemons." einfo fi if ! use bacula-clientonly; then if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw || die einfo einfo "The user 'bacula' has been created. Please see the bacula manual" einfo "for information about running bacula as a non-root user." einfo fi fi } pkg_setup() { local dbnum declare -i dbnum=0 if ! useq bacula-clientonly; then if useq mysql; then export mydbtype='mysql' let dbnum++ fi if useq postgres; then export mydbtype='postgresql' let dbnum++ fi if useq sqlite; then export mydbtype='sqlite' let dbnum++ fi if useq sqlite3; then export mydbtype='sqlite3' let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then eerror eerror "To use ${P} it is required to set a database in the USE flags." eerror "Supported databases are mysql, postgresql, sqlite, sqlite3" eerror die "No database type selected." elif [[ "${dbnum}" -gt 1 ]]; then eerror eerror "You have set ${P} to use multiple database types." eerror "I don't know which to set as the default!" eerror "You can use /etc/portage/package.use to set per-package USE flags" eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3" eerror die "Multiple database types selected." fi fi # create the daemon group and user if [ -z "$(egetent group bacula)" ]; then enewgroup bacula einfo einfo "The group 'bacula' has been created. Any users you add to this" einfo "group have access to files created by the daemons." einfo fi if ! useq bacula-clientonly; then if [ -z "$(egetent passwd bacula)" ]; then enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw einfo einfo "The user 'bacula' has been created. Please see the bacula manual" einfo "for information about running bacula as a non-root user." einfo fi fi } pkg_setup() { local dbnum declare -i dbnum=0 if ! useq bacula-clientonly; then if useq mysql; then export mydbtype='mysql' let dbnum++ fi if useq postgres; then export mydbtype='postgresql' let dbnum++ fi if useq sqlite; then export mydbtype='sqlite' let dbnum++ fi if useq sqlite3; then export mydbtype='sqlite3' let dbnum++ fi if [[ "${dbnum}" -lt 1 ]]; then eerror eerror "To use ${P} it is required to set a database in the USE flags." eerror "Supported databases are mysql, postgresql, sqlite, sqlite3" eerror die "No database type selected." elif [[ "${dbnum}" -gt 1 ]]; then eerror eerror "You have set ${P} to use multiple database types." eerror "I don't know which to set as the default!" eerror "You can use /etc/portage/package.use to set per-package USE flags" eerror "Set it so only one database type, mysql, postgres, sqlite, sqlite3" eerror die "Multiple database types selected." fi fi # create the daemon group and user if [ -z "$(egetent group bacula)" ]; then enewgroup bacula einfo einfo "The group 'bacula' has been created. Any users you add to this" einfo "group have access to files created by the daemons." einfo fi if ! useq bacula-clientonly; then if [ -z "$(egetent passwd bacula)" ]; then enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw einfo einfo "The user 'bacula' has been created. Please see the bacula manual" einfo "for information about running bacula as a non-root user." einfo fi fi } # Breaks libPiIMG.ss and libPiSNAP.so pkg_setup() { enewgroup tsm } pkg_setup() { enewgroup backuppc enewuser backuppc -1 -1 /dev/null backuppc webapp_pkg_setup } pkg_setup() { if use dar32 && use dar64 ; then eerror "dar32 and dar64 cannot be enabled together." eerror "Please remove one of them and try the emerge again." die "Please remove dar32 or dar64." fi } pkg_setup() { if use dar32 && use dar64 ; then eerror "dar32 and dar64 cannot be enabled together." eerror "Please remove one of them and try the emerge again." die "Please remove dar32 or dar64." fi } pkg_setup() { DOCS="AUTHORS ChangeLog NEWS README TODO" G2CONF="--disable-dependency-tracking $(use_with gnome libgnome)" } pkg_setup() { if use qt4; then ewarn "Qt port is highly experimental" ewarn "If you want a stable TeXmacs, emerge with USE=-qt4" fi } pkg_setup() { if use qt4; then ewarn "Qt port is highly experimental" ewarn "If you want a stable TeXmacs, emerge with USE=-qt4" fi } pkg_setup() { G2CONF="${G2CONF} $(use_with eds libebook) --disable-update-mimedb --disable-update-desktopdb --disable-static" } pkg_setup() { G2CONF="${G2CONF} $(use_with eds libebook) --disable-update-mimedb --disable-update-desktopdb" } pkg_setup() { G2CONF="${G2CONF} $(use_with eds libebook) --disable-update-mimedb --disable-update-desktopdb --disable-static" } # libgda? ( # >=gnome-extra/libgda-3.1.1 # >=gnome-extra/libgnomedb-3.0.1 ) pkg_setup() { G2CONF="${G2CONF} --enable-ssindex --disable-static --without-gda --without-guile --without-mono --with-zlib $(use_with perl) $(use_with python) $(use_with gnome)" # gcc bug (http://bugs.gnome.org/show_bug.cgi?id=128834) replace-flags "-Os" "-O2" } pkg_setup() { G2CONF="${G2CONF} --enable-ssindex --disable-static --without-gda --with-zlib $(use_with perl) $(use_with python) $(use_with gnome)" } pkg_setup() { G2CONF="${G2CONF} --enable-ssindex --disable-static --without-gda --with-zlib $(use_with perl) $(use_with python) $(use_with gnome)" } pkg_setup() { if has_version ">=dev-scheme/guile-1.8.0" && ! built_with_use dev-scheme/guile discouraged deprecated regex; then eerror "This package requires dev-scheme/guile with USE=\"discouraged deprecated regex\"." die "Please reemerge dev-scheme/guile with USE=\"discouraged deprecated regex\"." fi } if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then fi # english is handled internally if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then if [ "${X}" != "en-US" ]; then fi fi pkg_setup() { G2CONF="${G2CONF} --disable-schemas-install" } pkg_setup() { G2CONF="$(use_with gnome)" } pkg_setup() { python_set_active_version 2 } pkg_setup() { python_set_active_version 2 } pkg_setup() { if ! built_with_use --missing true x11-libs/pango X; then eerror "You must rebuild x11-libs/pango with USE='X'" die "You must rebuild x11-libs/pango with USE='X'" fi G2CONF="${G2CONF} $(use_enable debug) $(use_enable debug symbols) $(use_enable gnome gnomeui) $(use_enable gnome gucharmap) $(use_enable gnome gnomevfs) $(use_enable spell spellcheck) $(use_with xml libxml2) $(use_with !xml expat) --enable-libabiword --enable-printing" } pkg_setup() { if ! built_with_use --missing true x11-libs/pango X; then eerror "You must rebuild x11-libs/pango with USE='X'" die "You must rebuild x11-libs/pango with USE='X'" fi G2CONF="${G2CONF} $(use_enable debug) $(use_enable debug symbols) $(use_enable gnome gnomeui) $(use_enable gnome gucharmap) $(use_enable gnome gnomevfs) $(use_enable spell spellcheck) $(use_with xml libxml2) $(use_with !xml expat) --enable-libabiword --enable-printing" } pkg_setup() { if ! built_with_use --missing true x11-libs/pango X; then eerror "You must rebuild x11-libs/pango with USE='X'" die "You must rebuild x11-libs/pango with USE='X'" fi G2CONF="${G2CONF} $(use_enable debug) $(use_enable debug symbols) $(use_enable gnome gnomeui) $(use_enable gnome gucharmap) $(use_enable gnome gnomevfs) $(use_enable spell spellcheck) $(use_with xml libxml2) $(use_with !xml expat) --disable-libabiword --enable-printing --enable-threads --disable-scripting" } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) $(use_enable debug symbols) $(use_enable gnome gnomeui) $(use_enable gnome gucharmap) $(use_enable gnome gnomevfs) $(use_enable spell spellcheck) $(use_with xml libxml2) $(use_with !xml expat) --enable-libabiword --enable-printing" } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) $(use_enable ofx) $(use_enable hbci aqbanking) --disable-doxygen --enable-locale-specific-tax --disable-error-on-warning" } pkg_setup() { ewarn "This is one of several unstable 2.3.x releases of the GnuCash Free" ewarn "Accounting Software which will eventually lead to the stable version" ewarn "2.4.0." ewarn "This release is intended for developers and testers who want to help" ewarn "tracking down all those bugs that are still in there." ewarn "" ewarn "WARNING WARNING WARNING" ewarn "Make sure you make backups of any files used in testing versions of" ewarn "GnuCash in the 2.3.x series." if use webkit ; then G2CONF="${G2CONF} --with-html-engine=webkit" else G2CONF="${G2CONF} --with-html-engine=gtkhtml" fi if use sqlite || use mysql || use postgres ; then G2CONF="${G2CONF} --enable-dbi" fi G2CONF="${G2CONF} $(use_enable debug) $(use_enable ofx) $(use_enable hbci aqbanking) --disable-doxygen --enable-locale-specific-tax --disable-error-on-warning" } pkg_setup() { ewarn "This is one of several unstable 2.3.x releases of the GnuCash Free" ewarn "Accounting Software which will eventually lead to the stable version" ewarn "2.4.0." ewarn "This release is intended for developers and testers who want to help" ewarn "tracking down all those bugs that are still in there." ewarn "" ewarn "WARNING WARNING WARNING" ewarn "Make sure you make backups of any files used in testing versions of" ewarn "GnuCash in the 2.3.x series." if use webkit ; then G2CONF="${G2CONF} --with-html-engine=webkit" else G2CONF="${G2CONF} --with-html-engine=gtkhtml" fi if use sqlite || use mysql || use postgres ; then G2CONF="${G2CONF} --enable-dbi" fi G2CONF="${G2CONF} $(use_enable debug) $(use_enable ofx) $(use_enable hbci aqbanking) --disable-doxygen --enable-locale-specific-tax --disable-error-on-warning" } pkg_setup() { G2CONF="${G2CONF} $(use_enable debug) $(use_enable ofx) $(use_enable hbci aqbanking) --disable-doxygen --enable-locale-specific-tax --disable-error-on-warning" } if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then fi # english is handled internally if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then if [ "${X}" != "en-US" ]; then fi fi pkg_setup(){ if ! built_with_use x11-libs/cairo X; then eerror "Cairo is not built with X useflag." eerror "Please add 'X' to your USE flags, and re-emerge cairo." die "Cairo needs X" fi if ! built_with_use --missing true x11-libs/pango X; then eerror "Pango is not built with X useflag." eerror "Please add 'X' to your USE flags, and re-emerge pango." die "Pango needs X" fi if ! use bindist; then elog "You are enabling official branding. You may not redistribute this build" elog "to any users on your network or the internet. Doing so puts yourself into" elog "a legal problem with mozilla foundation" fi use moznopango && warn_mozilla_launcher_stub } pkg_setup() { G2CONF="${G2CONF} $(use_with cairo) $(use_with python) $(use_enable doc db2html) $(use_enable gnome) --disable-libemf --without-swig --without-hardbooks --disable-static --docdir=/usr/share/doc/${PF}" } pkg_setup() { G2CONF="${G2CONF} $(use_with cairo) $(use_with python) $(use_enable doc db2html) $(use_enable gnome) --disable-libemf --without-swig --without-hardbooks --disable-static --docdir=/usr/share/doc/${PF}" } pkg_setup() { if use jabber && ! use cxx; then eerror "AbiCollab needs dev-libs/boost to be build" die "Add USE=\"cxx\" to build AbiCollab plugin" fi } pkg_setup() { if use jabber && ! use cxx; then eerror "AbiCollab needs dev-libs/boost to be build" die "Add USE=\"cxx\" to build AbiCollab plugin" fi } pkg_setup() { if use jabber && ! use cxx; then eerror "AbiCollab needs dev-libs/boost to be build" die "Add USE=\"cxx\" to build AbiCollab plugin" fi } pkg_setup() { if use jabber && ! use cxx; then eerror "AbiCollab needs dev-libs/boost to be build" die "Add USE=\"cxx\" to build AbiCollab plugin" fi } pkg_setup() { ewarn ewarn " It is important to note that OpenOffice.org is a very fragile " ewarn " build when it comes to CFLAGS. A number of flags have already " ewarn " been filtered out. If you experience difficulty merging this " ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to " ewarn " merge again. " ewarn ewarn " Also if you experience a build break, please make sure to retry " ewarn " with MAKEOPTS="-j1" before filing a bug. " ewarn # Check if we have enough RAM and free diskspace to build this beast CHECKREQS_MEMORY="512" use debug && CHECKREQS_DISK_BUILD="12288" || CHECKREQS_DISK_BUILD="6144" check_reqs strip-linguas ${LANGS} if [[ -z "${LINGUAS}" ]]; then export LINGUAS_OOO="en-US" ewarn ewarn " To get a localized build, set the according LINGUAS variable(s). " ewarn else export LINGUAS_OOO=$(echo ${LINGUAS} | sed -e 's/\ben\b/en_US/g;s/_/-/g') fi if use !java; then ewarn " You are building with java-support disabled, this results in some " ewarn " of the OpenOffice.org functionality being disabled. " ewarn " If something you need does not work for you, rebuild with " ewarn " java in your USE-flags. " ewarn fi if use !gtk && use !gnome; then ewarn " If you want the OpenOffice.org systray quickstarter to work " ewarn " activate either the 'gtk' or 'gnome' use flags. " ewarn fi if is-flagq -ffast-math ; then eerror " You are using -ffast-math, which is known to cause problems. " eerror " Please remove it from your CFLAGS, using this globally causes " eerror " all sorts of problems. " eerror " After that you will also have to - at least - rebuild python otherwise " eerror " the openoffice build will break. " die fi if use nsplugin; then if pkg-config --exists libxul; then BRWS="libxul" elif pkg-config --exists xulrunner-xpcom; then BRWS="xulrunner" else die "USE flag [nsplugin] set but no installed xulrunner found!" fi fi java-pkg-opt-2_pkg_setup # sys-libs/db version used local db_ver=$(db_findver '>=sys-libs/db-4.3') kde4-base_pkg_setup } pkg_setup() { ewarn ewarn " It is important to note that OpenOffice.org is a very fragile " ewarn " build when it comes to CFLAGS. A number of flags have already " ewarn " been filtered out. If you experience difficulty merging this " ewarn " package and use agressive CFLAGS, lower the CFLAGS and try to " ewarn " merge again. " ewarn ewarn " Also if you experience a build break, please make sure to retry " ewarn " with MAKEOPTS="-j1" before filing a bug. " ewarn # Check if we have enough RAM and free diskspace to build this beast CHECKREQS_MEMORY="512" use debug && CHECKREQS_DISK_BUILD="12288" || CHECKREQS_DISK_BUILD="6144" check_reqs strip-linguas ${LANGS} # en_US is built by default, upstream needs us to use --with-lang="" in this case though, so strip it out export LINGUAS_TEMP=$(echo ${LINGUAS} | sed -e 's/\ben_US\b//g;s/en//g;s/_GB/en_GB/g;s/_ZA/en_ZA/g') if [[ -z "${LINGUAS_TEMP}" ]] || [[ ${LINGUAS_TEMP} == " " ]]; then export LINGUAS_OOO="" else # always build en-US as a fallback (needed for broken code / translations) export LINGUAS_OOO="en-US ${LINGUAS_TEMP//_/-}" fi if use !java; then ewarn " You are building with java-support disabled, this results in some " ewarn " of the OpenOffice.org functionality being disabled. " ewarn " If something you need does not work for you, rebuild with " ewarn " java in your USE-flags. " ewarn fi if use !gtk && use !gnome; then ewarn " If you want the OpenOffice.org systray quickstarter to work " ewarn " activate either the 'gtk' or 'gnome' use flags. " ewarn fi if is-flagq -ffast-math ; then eerror " You are using -ffast-math, which is known to cause problems. " eerror " Please remove it from your CFLAGS, using this globally causes " eerror " all sorts of problems. " eerror " After that you will also have to - at least - rebuild python otherwise " eerror " the openoffice build will break. " die fi java-pkg-opt-2_pkg_setup # sys-libs/db version used local db_ver=$(db_findver '>=sys-libs/db-4.3') kde4-base_pkg_setup } pkg_setup() { if ! use print; then elog elog "NOTE: The USE variable 'print' is not in your USE flags." elog "For printing support in grisbi, you will need to restart" elog "the build with USE=\"print\"" elog ebeep 5 fi } pkg_setup() { if ! use print; then elog elog "NOTE: The USE variable 'print' is not in your USE flags." elog "For printing support in grisbi, you will need to restart" elog "the build with USE=\"print\"" elog ebeep 5 fi } [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( x86? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_langpack_${X/_/-}.tar.gz ) amd64? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_langpack_${X/_/-}.tar.gz ) )" [[ ${X} != "en" ]] && SRC_URI="${SRC_URI} linguas_${X}? ( x86? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxIntel_langpack_${X/_/-}.tar.gz ) amd64? ( mirror://openoffice-extended/${MY_PV}/OOo_${MY_PV2}_LinuxX86-64_langpack_${X/_/-}.tar.gz ) )" pkg_setup() { G2CONF="${G2CONF} $(use_with libgda database gda3) $(use_enable python) $(use_enable python python-plugin) $(use_enable eds) --disable-update-mimedb" } pkg_setup() { XFCONF="--disable-dependency-tracking $(use_enable dbus) $(use_enable libnotify) --disable-libxfce4mcs $(use_enable debug) $(use_with berkdb bdb4)" DOCS="AUTHORS ChangeLog NEWS README TODO" } # ppc: bug #145478 pkg_setup() { games_pkg_setup java-pkg-2_pkg_setup } pkg_setup() { games_pkg_setup java-pkg-2_pkg_setup } pkg_setup() { games_pkg_setup use nocd && fullinstall=1 use sounds && use videos && use maps && fullinstall=1 [[ ${fullinstall} -eq 1 ]] \ && ewarn "The full installation takes about 341 MB of space!" } pkg_setup() { games_pkg_setup java-pkg-2_pkg_setup } pkg_setup() { games_pkg_setup if ! use dedicated ; then if use gtk ; then einfo "The Freeciv Client will be built with the GTK+-2 toolkit" elif use sdl ; then einfo "The Freeciv Client will be built with the SDL toolkit" elif use Xaw3d ; then einfo "The Freeciv Client will be built with the Xaw3d toolkit" else einfo "The Freeciv Client will be built with the Xaw toolkit" fi fi } pkg_setup() { games_pkg_setup if ! use dedicated ; then if use gtk ; then einfo "The Freeciv Client will be built with the GTK+-2 toolkit" elif use Xaw3d ; then einfo "The Freeciv Client will be built with the Xaw3d toolkit" elif use sdl ; then einfo "The Freeciv Client will be built with the SDL toolkit" else einfo "The Freeciv Client will be built with the Xaw toolkit" fi if ! use alsa && ! use sdl ; then ewarn ewarn "To enable sound support in civclient, you must enable" ewarn "at least one of this USE flags: alsa, sdl" ewarn fi fi } # and GPL-2 only # and GPL-2 only # and GPL-2 only pkg_setup() { linux-info_pkg_setup inotify_enabled if use gstreamer ; then G2CONF="${G2CONF} --enable-video-extractor=gstreamer --enable-gstreamer-tagreadbin" # --enable-gstreamer-helix (real media) elif use xine ; then G2CONF="${G2CONF} --enable-video-extractor=xine" else G2CONF="${G2CONF} --enable-video-extractor=external" fi # hal and dk-p are used for AC power detection if use laptop; then G2CONF="${G2CONF} $(use_enable hal) $(use_enable !hal devkit-power)" else G2CONF="${G2CONF} --disable-hal --disable-devkit-power" fi if use nautilus; then G2CONF="${G2CONF} --enable-nautilus-extension=yes" else G2CONF="${G2CONF} --enable-nautilus-extension=no" fi G2CONF="${G2CONF} --disable-unac --disable-functional-tests --with-enca $(use_enable applet tracker-status-icon) $(use_enable applet tracker-search-bar) $(use_enable deskbar deskbar-applet) $(use_enable eds evolution-miner) $(use_enable exif libexif) $(use_enable flac libflac) $(use_enable gnome-keyring) $(use_enable gsf libgsf) $(use_enable gtk tracker-explorer) $(use_enable gtk tracker-preferences) $(use_enable gtk tracker-search-tool) $(use_enable iptc libiptcdata) $(use_enable jpeg libjpeg) $(use_enable kmail kmail-miner) $(use_enable mp3 id3lib) $(use_enable pdf poppler-glib) $(use_enable playlist) $(use_enable test unit-tests) $(use_enable tiff libtiff) $(use_enable vorbis libvorbis) $(use_enable xml libxml2) $(use_enable xmp exempi)" # FIXME: Missing files to run functional tests # $(use_enable test functional-tests) # FIXME: useless without quill (extract mp3 albumart...) # $(use_enable gtk gdkpixbuf) } pkg_setup() { linux-info_pkg_setup inotify_enabled if use gstreamer ; then G2CONF="${G2CONF} --enable-video-extractor=gstreamer --enable-gstreamer-tagreadbin" # --enable-gstreamer-helix (real media) elif use xine ; then G2CONF="${G2CONF} --enable-video-extractor=xine" else G2CONF="${G2CONF} --enable-video-extractor=external" fi # hal and dk-p are used for AC power detection if use laptop; then G2CONF="${G2CONF} $(use_enable hal) $(use_enable !hal devkit-power)" else G2CONF="${G2CONF} --disable-hal --disable-devkit-power" fi if use nautilus; then G2CONF="${G2CONF} --enable-nautilus-extension=yes" else G2CONF="${G2CONF} --enable-nautilus-extension=no" fi G2CONF="${G2CONF} --disable-unac --disable-functional-tests --with-enca $(use_enable applet tracker-status-icon) $(use_enable applet tracker-search-bar) $(use_enable deskbar deskbar-applet) $(use_enable eds evolution-miner) $(use_enable exif libexif) $(use_enable flac libflac) $(use_enable gsf libgsf) $(use_enable gtk tracker-explorer) $(use_enable gtk tracker-preferences) $(use_enable gtk tracker-search-tool) $(use_enable iptc libiptcdata) $(use_enable jpeg libjpeg) $(use_enable kmail kmail-miner) $(use_enable mp3 id3lib) $(use_enable pdf poppler-glib) $(use_enable playlist) $(use_enable test unit-tests) $(use_enable tiff libtiff) $(use_enable vorbis libvorbis) $(use_enable xml libxml2) $(use_enable xmp exempi)" # FIXME: Missing files to run functional tests # $(use_enable test functional-tests) # FIXME: useless without quill (extract mp3 albumart...) # $(use_enable gtk gdkpixbuf) } pkg_setup() { G2CONF="${G2CONF} --disable-mime-install" } pkg_setup() { G2CONF="${G2CONF} --disable-mime-install" } pkg_setup() { if use lirc_devices_mceusb2 then ewarn "The mceusb2 driver has been merged into the mceusb." ewarn "Please only use the latter now." fi ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad; then ewarn "The imon_pad driver has incorporated the previous pad2keys patch" ewarn "and removed the pad2keys_active option for the lirc_imon module" ewarn "because it is always active." ewarn "If you have an older imon VFD device, you may need to add the module" ewarn "option display_type=1 to override autodetection and force VFD mode." fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=none" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad2keys; then add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" ewarn "You need to set the option pad2keys_active=1" ewarn "when loading the module lirc_imon" fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=userspace" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { if use lirc_devices_mceusb2 then ewarn "The mceusb2 driver has been merged into the mceusb." ewarn "Please only use the latter now." fi ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad; then ewarn "The imon_pad driver has incorporated the previous pad2keys patch" ewarn "and removed the pad2keys_active option for the lirc_imon module" ewarn "because it is always active." ewarn "If you have an older imon VFD device, you may need to add the module" ewarn "option display_type=1 to override autodetection and force VFD mode." fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=none" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad2keys; then add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" ewarn "You need to set the option pad2keys_active=1" ewarn "when loading the module lirc_imon" fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=userspace" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad2keys; then add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" ewarn "You need to set the option pad2keys_active=1" ewarn "when loading the module lirc_imon" fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=userspace" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { ewarn "If your LIRC device requires modules, you'll need MODULE_UNLOAD" ewarn "support in your kernel." linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad; then ewarn "The imon_pad driver has incorporated the previous pad2keys patch" ewarn "and removed the pad2keys_active option for the lirc_imon module" ewarn "because it is always active." ewarn "If you have an older imon VFD device, you may need to add the module" ewarn "option display_type=1 to override autodetection and force VFD mode." fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=none" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { linux-mod_pkg_setup # set default configure options MY_OPTS="" LIRC_DRIVER_DEVICE="/dev/lirc0" if use lirc_devices_all; then # compile in drivers for a lot of devices add_device all "a lot of devices" else # compile in only requested drivers local dev for dev in ${IUSE_LIRC_DEVICES_DIRECT}; do if use lirc_devices_${dev}; then add_device ${dev} fi done if use lirc_devices_remote_wonder_plus; then add_device atiusb "device Remote Wonder Plus (atiusb-based)" fi if use lirc_devices_serial_igor_cesko; then add_device serial "serial with Igor Cesko design" MY_OPTS="${MY_OPTS} --with-igor" fi if use lirc_devices_imon_pad2keys; then add_device imon_pad "device imon_pad (with converting pad input to keyspresses)" ewarn "You need to set the option pad2keys_active=1" ewarn "when loading the module lirc_imon" fi if use lirc_devices_xboxusb; then add_device atiusb "device xboxusb" fi if use lirc_devices_usbirboy; then add_device userspace "device usbirboy" LIRC_DRIVER_DEVICE="/dev/usbirboy" fi if [[ "${MY_OPTS}" == "" ]]; then if [[ "${PROFILE_ARCH}" == "xbox" ]]; then # on xbox: use special driver add_device atiusb "device xboxusb" else # no driver requested elog elog "Compiling only the lirc-applications, but no drivers." elog "Enable drivers with LIRC_DEVICES if you need them." MY_OPTS="--with-driver=userspace" fi fi fi use hardware-carrier && MY_OPTS="${MY_OPTS} --without-soft-carrier" use transmitter && MY_OPTS="${MY_OPTS} --with-transmitter" if [[ -n "${LIRC_OPTS}" ]] ; then ewarn ewarn "LIRC_OPTS is deprecated from lirc-0.8.0-r1 on." ewarn ewarn "Please use LIRC_DEVICES from now on." ewarn "e.g. LIRC_DEVICES=\"serial sir\"" ewarn ewarn "Flags are now set per use-flags." ewarn "e.g. transmitter, hardware-carrier" local opt local unsupported_opts="" # test for allowed options for LIRC_OPTS for opt in ${LIRC_OPTS}; do case ${opt} in --with-port=*|--with-irq=*|--with-timer=*|--with-tty=*) MY_OPTS="${MY_OPTS} ${opt}" ;; *) unsupported_opts="${unsupported_opts} ${opt}" ;; esac done if [[ -n ${unsupported_opts} ]]; then ewarn "These options are no longer allowed to be set" ewarn "with LIRC_OPTS: ${unsupported_opts}" die "LIRC_OPTS is no longer recommended." fi fi # Setup parameter for linux-mod.eclass MODULE_NAMES="lirc(misc:${S})" BUILD_TARGETS="all" ECONF_PARAMS=" --localstatedir=/var --with-syslog=LOG_DAEMON --enable-sandboxed --with-kerneldir=${KV_DIR} --with-moduledir=/lib/modules/${KV_FULL}/misc $(use_enable debug) $(use_with X x) ${MY_OPTS}" einfo einfo "lirc-configure-opts: ${MY_OPTS}" elog "Setting default lirc-device to ${LIRC_DRIVER_DEVICE}" filter-flags -Wl,-O1 # force non-parallel make, Bug 196134 MAKEOPTS="${MAKEOPTS} -j1" } pkg_setup() { tc-export CC } pkg_setup() { # Make sure utmp group exists, as it's used later on. enewgroup utmp 406 } pkg_setup() { enewuser klive -1 /bin/bash } pkg_setup() { BOOST_PKG="$(best_version "> /etc/portage/package.use" die "You need to choose a toolkit" fi if ! use gstreamer; then ewarn "Disabling gstreamer disables the multimedia functions of ${PN}." ewarn "This is not recommended. To enable gstreamer, do:" ewarn "echo \"${CATEGORY}/${PN} gstreamer\" >> /etc/portage/package.use" fi } pkg_setup() { # If a non-google, non-qt4 and non-gtk host system for google-gadgets is ever developed, # I'll consider changing the error below. if ! use gtk && ! use qt4; then eerror "You must choose which toolkit to build for. Either qt4 or gtk can be" eerror "chosen. For qt4, see also above. To enable \$toolkit, do:" eerror "echo \"${CATEGORY}/${PN} \$toolkit\" >> /etc/portage/package.use" die "You need to choose a toolkit" fi if ! use gstreamer; then ewarn "Disabling gstreamer disables the multimedia functions of ${PN}." ewarn "This is not recommended. To enable gstreamer, do:" ewarn "echo \"${CATEGORY}/${PN} gstreamer\" >> /etc/portage/package.use" fi } pkg_setup() { # If a non-google, non-qt4 and non-gtk host system for google-gadgets is ever developed, # I'll consider changing the error below. if ! use gtk && ! use qt4; then eerror "You must choose which toolkit to build for. Either qt4 or gtk can be" eerror "chosen. For qt4, see also above. To enable \$toolkit, do:" eerror "echo \"${CATEGORY}/${PN} \$toolkit\" >> /etc/portage/package.use" die "You need to choose a toolkit" fi if ! use gstreamer; then ewarn "Disabling gstreamer disables the multimedia functions of ${PN}." ewarn "This is not recommended. To enable gstreamer, do:" ewarn "echo \"${CATEGORY}/${PN} gstreamer\" >> /etc/portage/package.use" fi } pkg_setup() { if ! built_with_use media-libs/imlib2 X; then eerror "You need to have media-libs/imlib2 compiled with USE=\"X\"" die "You need to have media-libs/imlib2 compiled with USE=\"X\"" fi } pkg_setup() { DOCS="AUTHORS ChangeLog NEWS" G2CONF="$(use_enable gstreamer sound gstreamer)" } pkg_setup() { if ! built_with_use net-dns/avahi python || ! ( has_version dev-python/dbus-python || built_with_use sys-apps/dbus python ) then die "Sorry, but you need net-dns/avahi and sys-apps/dbus compiled with python support." fi if ! built_with_use net-dns/avahi gdbm then die "Sorry, but you need net-dns/avahi compiled with gdbm support." fi G2CONF="${G2CONF} --disable-schemas-install" } pkg_setup() { if ! built_with_use net-dns/avahi python || ! ( has_version dev-python/dbus-python || built_with_use sys-apps/dbus python ) then die "Sorry, but you need net-dns/avahi and sys-apps/dbus compiled with python support." fi if ! built_with_use net-dns/avahi gdbm then die "Sorry, but you need net-dns/avahi compiled with gdbm support." fi G2CONF="${G2CONF} --disable-schemas-install" } # bug 237240 pkg_setup() { # fix for bug #185144 if ! built_with_use media-libs/imlib2 X; then eerror "habak needs imlib2 built with X USE flag" eerror "Please recompile media-libs/imlib2 with USE=X" die "habak needs media-libs/imlib2 built with USE=X" fi } # FIXME pkg_setup() { if use cairo && ! built_with_use x11-libs/cairo X ; then eerror "In order to install ${PN} with cairo support you" eerror "need to reinstall x11-libs/cairo with USE='X'." die "x11-libs/cairo built without USE='X'" fi } pkg_setup() { DOCS="AUTHORS ChangeLog NEWS README TODO" } pkg_setup() { DOCS="AUTHORS ChangeLog TRANSLATIONS README TODO" G2CONF="$(use_enable nls)" } pkg_setup() { if use avahi && ! use threads && ! use system-libvncserver then ewarn "Non-native avahi support has been enabled." ewarn "Native avahi support can be enabled by also enabling the threads USE flag." fi } pkg_setup() { if use avahi && ! use threads && ! use system-libvncserver then ewarn "Non-native avahi support has been enabled." ewarn "Native avahi support can be enabled by also enabling the threads USE flag." fi } pkg_setup() { if use avahi && ! use threads then ewarn "Non-native avahi support has been enabled." ewarn "Native avahi support can be enabled by also enabling the threads USE flag." fi } pkg_setup() { if use avahi && ! use threads then ewarn "Non-native avahi support has been enabled." ewarn "Native avahi support can be enabled by also enabling the threads USE flag." fi } pkg_setup() { if use avahi && ! use threads && ! use system-libvncserver then ewarn "Non-native avahi support has been enabled." ewarn "Native avahi support can be enabled by also enabling the threads USE flag." fi } #kde gnome pkg_setup() { python_set_active_version 2 } pkg_setup() { G2CONF="${G2CONF} --disable-static --with-distro=gentoo --with-prototype-user=${PN}-admin --enable-console-helper=no" einfo "Adding user '${PN}-admin' as the prototype user" # I think /var/lib/sabayon is the correct directory to use here. enewgroup ${PN}-admin enewuser ${PN}-admin -1 -1 "/var/lib/sabayon" "${PN}-admin" # Should we delete the user/group on unmerge? } pkg_setup() { if built_with_use x11-base/xorg-server minimal; then eerror "${PN} needs Xnest, which the minimal USE flag disables." eerror "Please re-emerge x11-base/xorg-xserver with USE=-minimal" die "need x11-base/xorg-xserver built without minimal USE flag" fi if ! built_with_use dev-libs/libxml2 python; then eerror "${PN} needs the python bindings to libxml2." eerror "Please re-emerge dev-libs/libxml2 with USE=python" die "need dev-libs/libxml2 built with python USE flag" fi G2CONF="${G2CONF} --with-distro=gentoo --with-prototype-user=${PN}-admin --enable-console-helper=no" #--with-pam-prefix=$(getpam_mod_dir)" einfo "Adding user '${PN}-admin' as the prototype user" # I think /var/lib/sabayon is the correct directory to use here. enewgroup ${PN}-admin enewuser ${PN}-admin -1 -1 "/var/lib/sabayon" "${PN}-admin" # Should we delete the user/group on unmerge? } pkg_setup() { G2CONF="${G2CONF} --disable-static --with-distro=gentoo --with-prototype-user=${PN}-admin --enable-console-helper=no" einfo "Adding user '${PN}-admin' as the prototype user" # I think /var/lib/sabayon is the correct directory to use here. enewgroup ${PN}-admin enewuser ${PN}-admin -1 -1 "/var/lib/sabayon" "${PN}-admin" # Should we delete the user/group on unmerge? } pkg_setup() { enewgroup syslog enewuser syslog -1 -1 /nonexistent syslog } pkg_setup() { G2CONF="${G2CONF} --disable-static $(use_enable policykit polkit)" if ! use nfs && ! use samba; then G2CONF="${G2CONF} --disable-shares" fi if use policykit && ! built_with_use app-admin/system-tools-backends policykit; then eerror "app-admin/system-tools-backends was not built with USE='policykit'" die "Please rebuild app-admin/system-tools-backends with policykit support" fi } pkg_setup() { G2CONF="${G2CONF} --disable-static $(use_enable policykit polkit-gtk)" if ! use nfs && ! use samba; then G2CONF="${G2CONF} --disable-shares" fi } pkg_setup() { enewgroup gkrellmd enewuser gkrellmd -1 -1 -1 gkrellmd TARGET= use kernel_FreeBSD && TARGET="freebsd" } pkg_setup() { enewgroup gkrellmd enewuser gkrellmd -1 -1 -1 gkrellmd TARGET= use kernel_FreeBSD && TARGET="freebsd" } pkg_setup() { enewgroup gkrellmd enewuser gkrellmd -1 -1 -1 gkrellmd TARGET= use kernel_FreeBSD && TARGET="freebsd" } pkg_setup() { enewgroup rmake enewgroup rmake-chroot enewuser rmake -1 -1 /srv/rmake "rmake" enewuser rmake-chroot -1 -1 / "rmake-chroot" } pkg_setup() { enewgroup rmake enewgroup rmake-chroot enewuser rmake -1 -1 /srv/rmake "rmake" enewuser rmake-chroot -1 -1 / "rmake-chroot" } pkg_setup() { enewgroup rmake enewgroup rmake-chroot enewuser rmake -1 -1 /srv/rmake "rmake" enewuser rmake-chroot -1 -1 / "rmake-chroot" } pkg_setup() { enewgroup rmake enewgroup rmake-chroot enewuser rmake -1 -1 /srv/rmake "rmake" enewuser rmake-chroot -1 -1 / "rmake-chroot" } pkg_setup() { python_set_active_version 2 } pkg_setup() { if ! built_with_use media-libs/gd jpeg ; then eerror "libgd is missing jpeg support. Please add" eerror "'jpeg' to your USE flags, and re-emerge media-libs/gd." die "libgd needs jpeg support" fi if ! built_with_use media-libs/gd png ; then eerror "libgd is missing jpeg support. Please add" eerror "'png' to your USE flags, and re-emerge media-libs/gd." die "libgd needs png support" fi } pkg_setup() { if ! built_with_use media-libs/gd jpeg ; then eerror "libgd is missing jpeg support. Please add" eerror "'jpeg' to your USE flags, and re-emerge media-libs/gd." die "libgd needs jpeg support" fi if ! built_with_use media-libs/gd png ; then eerror "libgd is missing jpeg support. Please add" eerror "'png' to your USE flags, and re-emerge media-libs/gd." die "libgd needs png support" fi } pkg_setup() { webapp_pkg_setup confutils_require_built_with_all media-libs/gd png # USE=nls has no real meaning if LINGUAS isn't set if use nls && [[ -z "${LINGUAS}" ]]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { use test && elog "Warning, for test usage, diradm is built with all optional features!" } pkg_setup() { use test && elog "Warning, for test usage, diradm is built with all optional features!" } pkg_setup() { if use test; then if built_with_use net-nds/openldap minimal ; then die "You MUST have a non-minimal build of OpenLDAP to use the testcases!" fi elog "Warning, for test usage, diradm is built with all optional features!" fi } *_beta* | *_rc*) ;; *) ;; pkg_setup() { confutils_use_conflict skey pam } *_beta* | *_rc*) ;; *) ;; pkg_setup() { confutils_use_conflict skey pam } *_beta* | *_rc*) ;; *) ;; pkg_setup() { confutils_use_conflict skey pam } *_beta* | *_rc*) ;; *) ;; pkg_setup() { confutils_use_conflict skey pam } *_beta* | *_rc*) ;; *) ;; pkg_setup() { confutils_use_conflict skey pam } pkg_setup() { webapp_pkg_setup confutils_require_built_with_all media-libs/gd png # USE=nls has no real meaning if LINGUAS isn't set if use nls && [[ -z "${LINGUAS}" ]]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { enewgroup puppet enewuser puppet -1 -1 /var/lib/puppet puppet } pkg_setup() { enewgroup puppet enewuser puppet -1 -1 /var/lib/puppet puppet } pkg_setup() { enewgroup puppet enewuser puppet -1 -1 /var/lib/puppet puppet } pkg_setup() { if ! built_with_use dev-lang/tcl threads ; then eerror "Tcl is missing threads support." eerror "Please add 'threads' to your USE flags, and re-emerge tcl." die "tcl needs threads support" fi } pkg_setup() { if ! built_with_use dev-lang/tcl threads ; then eerror "Tcl is missing threads support." eerror "Please add 'threads' to your USE flags, and re-emerge tcl." die "tcl needs threads support" fi } pkg_setup() { webapp_pkg_setup confutils_require_built_with_all media-libs/gd png # USE=nls has no real meaning if LINGUAS isn't set if use nls && [[ -z "${LINGUAS}" ]]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { webapp_pkg_setup confutils_require_built_with_all media-libs/gd png # USE=nls has no real meaning if LINGUAS isn't set if use nls && [[ -z "${LINGUAS}" ]]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { webapp_pkg_setup # prevents "undefined reference" errors... see bug #65163 if ! built_with_use media-libs/gd png; then ewarn "media-libs/gd must be built with png for this package" ewarn "to function." die "recompile gd with USE=\"png\"" fi # USE=nls has no real meaning if LINGUAS isn't set if use nls && [ -z "${LINGUAS}" ]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { webapp_pkg_setup confutils_require_built_with_all media-libs/gd png # USE=nls has no real meaning if LINGUAS isn't set if use nls && [[ -z "${LINGUAS}" ]]; then ewarn "you must set LINGUAS in /etc/make.conf" ewarn "if you want to USE=nls" die "please either set LINGUAS or do not use nls" fi } pkg_setup() { enewgroup ulogd enewuser ulogd -1 -1 /var/log/ulogd ulogd } pkg_setup() { enewgroup ulogd enewuser ulogd -1 -1 /var/log/ulogd ulogd } # sqlite #sqlite? ( dev-db/sqlite:3 ) pkg_setup() { enewgroup ulogd enewuser ulogd -1 -1 /var/log/ulogd ulogd } # Add keywords as those archs have a binpkg # Add keywords as those archs have a binpkg # pod2man # pod2man pkg_setup() { enewgroup tenshi enewuser tenshi -1 -1 /var/lib/tenshi tenshi } pkg_setup() enewgroup osiris enewuser osiris -1 -1 /var/lib/osiris osiris } >=dev-ruby/amazon-ec2-0.5.0 >=dev-ruby/highline-1.5.1 >=dev-ruby/aws-s3-0.6.1 >=dev-ruby/storable-0.5.8 >=dev-ruby/gibbler-0.7.1 >=dev-ruby/sysinfo-0.7.0 >=dev-ruby/caesars-0.7.3 >=dev-ruby/drydock-0.6.6 >=dev-ruby/annoy-0.5.5 >=dev-ruby/attic-0.4.0 >=dev-ruby/rye-0.8.11' >=dev-ruby/amazon-ec2-0.9.4 >=dev-ruby/highline-1.5.1 >=dev-ruby/aws-s3-0.6.1 >=dev-ruby/storable-0.6.3 >=dev-ruby/gibbler-0.7.4 >=dev-ruby/sysinfo-0.7.3 >=dev-ruby/caesars-0.7.4 >=dev-ruby/drydock-0.6.9 >=dev-ruby/annoy-0.5.6 >=dev-ruby/attic-0.5.2 >=dev-ruby/rye-0.8.11' pkg_setup() { python_set_active_version 2 } pkg_setup() { enewgroup logcheck enewuser logcheck -1 -1 -1 logcheck } pkg_setup() { enewgroup logcheck enewuser logcheck -1 -1 -1 logcheck } pkg_setup() { enewgroup logcheck enewuser logcheck -1 -1 -1 logcheck } pkg_setup() { enewgroup logcheck enewuser logcheck -1 -1 -1 logcheck } pkg_setup() { if [[ $(gcc-major-version) -lt 3 || ($(gcc-major-version) -eq 3 && $(gcc-minor-version) -lt 4) ]]; then die "GCC >=3.4 is required" fi } pkg_setup() { if [[ $(gcc-major-version) -lt 3 || ($(gcc-major-version) -eq 3 && $(gcc-minor-version) -lt 4) ]]; then die "GCC >=3.4 is required" fi } pkg_setup() { if [[ $(gcc-major-version) -lt 3 || ($(gcc-major-version) -eq 3 && $(gcc-minor-version) -lt 4) ]]; then die "GCC >=3.4 is required" fi } # since visualversion.com died pkg_setup() { G2CONF="${G2CONF} $(use_enable policykit polkit)" enewgroup stb-admin || die "Failed to create stb-admin group" } pkg_setup() { G2CONF="${G2CONF} $(use_enable policykit polkit) --localstatedir=/var" enewgroup stb-admin || die "Failed to create stb-admin group" } pkg_setup() { java-pkg-2_pkg_setup enewgroup tomcat 265 enewuser tomcat 265 -1 /dev/null tomcat } pkg_setup() { java-pkg-2_pkg_setup enewgroup tomcat 265 enewuser tomcat 265 -1 /dev/null tomcat } pkg_setup() { java-pkg-2_pkg_setup enewgroup tomcat 265 enewuser tomcat 265 -1 /dev/null tomcat } pkg_setup() { java-pkg-2_pkg_setup # new user for tomcat enewgroup tomcat enewuser tomcat -1 -1 /dev/null tomcat java-pkg_filter-compiler ecj-3.1 ecj-3.2 } pkg_setup() { enewgroup gorg enewuser gorg -1 -1 -1 gorg } pkg_setup() { enewgroup gorg enewuser gorg -1 -1 -1 gorg } pkg_setup() { enewgroup gorg enewuser gorg -1 -1 -1 gorg } pkg_setup() { enewgroup ocsigen enewuser ocsigen -1 -1 /var/www ocsigen use !dbm && use !sqlite \ && ewarn "Neither dbm nor sqlite are in useflags, will enable sqlite as default" use sqlite && use dbm \ && ewarn "sqlite and dbm are both in useflags, will use only sqlite" } pkg_setup() { java-pkg-2_pkg_setup enewgroup resin enewuser resin -1 /bin/bash ${RESIN_HOME} resin } pkg_setup() { java-pkg-2_pkg_setup enewgroup resin enewuser resin -1 /bin/bash ${RESIN_HOME} resin } ## java-virtuals/jaf" pkg_setup() { java-pkg-2_pkg_setup enewgroup resin enewuser resin -1 /bin/bash ${RESIN_HOME} resin } pkg_setup() { java-pkg-2_pkg_setup enewgroup resin enewuser resin -1 /bin/bash ${RESIN_HOME} resin } pkg_setup() { enewuser fnord -1 -1 /etc/fnord nofiles enewuser fnordlog -1 -1 /etc/fnord nofiles } pkg_setup() { enewgroup ${THTTPD_GROUP} enewuser ${THTTPD_USER} -1 -1 -1 ${THTTPD_GROUP} } pkg_setup() { if ! use pcre ; then ewarn "It is highly recommended that you build ${PN}" ewarn "with perl regular expressions support via USE=pcre." ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." ebeep 5 fi use php && require_php_with_use cgi enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } pkg_setup() { if ! use pcre ; then ewarn "It is highly recommended that you build ${PN}" ewarn "with perl regular expressions support via USE=pcre." ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." ebeep 5 fi use php && require_php_with_use cgi enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } pkg_setup() { if ! use pcre ; then ewarn "It is highly recommended that you build ${PN}" ewarn "with perl regular expressions support via USE=pcre." ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." ebeep 5 fi use php && require_php_with_use cgi enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } pkg_setup() { if ! use pcre ; then ewarn "It is highly recommended that you build ${PN}" ewarn "with perl regular expressions support via USE=pcre." ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." ebeep 5 fi use php && require_php_with_use cgi enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } pkg_setup() { if ! use pcre ; then ewarn "It is highly recommended that you build ${PN}" ewarn "with perl regular expressions support via USE=pcre." ewarn "Otherwise you lose support for some core options such" ewarn "as conditionals and modules such as mod_re{write,direct}" ewarn "and mod_ssi." ebeep 5 fi use php && require_php_with_use cgi enewgroup lighttpd enewuser lighttpd -1 -1 /var/www/localhost/htdocs lighttpd } pkg_setup() { enewgroup skunkweb enewuser skunkweb -1 -1 /usr/share/skunkweb skunkweb } pkg_setup() { enewgroup skunkweb enewuser skunkweb -1 -1 /usr/share/skunkweb skunkweb } pkg_setup() { use php && require_php_cgi } pkg_setup() { use php && require_php_cgi } pkg_setup() { use php && require_php_cgi } >=dev-ruby/gem_plugin-0.2.3" ruby_add_rdepend ">=dev-ruby/fastthread-1.0.1" pkg_setup() { ebegin "Creating nginx user and group" enewgroup ${PN} enewuser ${PN} -1 -1 -1 ${PN} eend ${?} if use ipv6; then ewarn "Note that ipv6 support in nginx is still experimental." ewarn "Be sure to read comments on gentoo bug #274614" ewarn "http://bugs.gentoo.org/show_bug.cgi?id=274614" fi if use libatomic; then ewarn "GCC 4.1+ features built-in atomic operations." ewarn "Using libatomic_ops is only needed if using" ewarn "a different compiler or a GCC prior to 4.1" fi if [[ -n $NGINX_ADD_MODULES ]]; then ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" ewarn "This nginx installation is not supported!" ewarn "Please do not file bug reports!" fi if use nginx_modules_http_passenger; then ruby-ng_pkg_setup use debug && append-flags -DPASSENGER_DEBUG fi } pkg_setup() { ebegin "Creating nginx user and group" enewgroup ${PN} enewuser ${PN} -1 -1 -1 ${PN} eend ${?} if use ipv6; then ewarn "Note that ipv6 support in nginx is still experimental." ewarn "Be sure to read comments on gentoo bug #274614" ewarn "http://bugs.gentoo.org/show_bug.cgi?id=274614" fi if use libatomic; then ewarn "GCC 4.1+ features built-in atomic operations." ewarn "Using libatomic_ops is only needed if using" ewarn "a different compiler or a GCC prior to 4.1" fi if [[ -n $NGINX_ADD_MODULES ]]; then ewarn "You are building custom modules via \$NGINX_ADD_MODULES!" ewarn "This nginx installation is not supported!" ewarn "Please do not file bug reports!" fi if use nginx_modules_http_passenger; then ruby-ng_pkg_setup use debug && append-flags -DPASSENGER_DEBUG fi } pkg_setup() { ebegin "Creating nginx user and group" enewgroup ${PN} enewuser ${PN} -1 -1 -1 ${PN} eend ${?} } >=dev-ruby/rack-1.0.0 >=dev-ruby/eventmachine-0.12.6" #ssl? ( dev-libs/openssl ) #" pkg_setup() { ebegin "Creating gatling user and group" enewgroup gatling enewuser ${PN} -1 -1 /var/www/localhost ${PN} } pkg_setup() { # Disable papi support until papi is in portage; avoids automagic # dependencies on an untracked library. G2CONF="$(use_with cups) --without-papi --disable-static" } pkg_setup() { # Disable papi support until papi is in portage; avoids automagic # dependencies on an untracked library. G2CONF="$(use_with cups) --without-papi --disable-static" } pkg_setup() { # Disable papi support until papi is in portage; avoids automagic # dependencies on an untracked library. G2CONF="$(use_with cups) --without-papi" } pkg_setup() { # Disable papi support until papi is in portage; avoids automagic # dependencies on an untracked library. G2CONF="$(use_with cups) --without-papi" } pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper --disable-schemas-install --enable-flags $(use_with hal) $(use_enable ipv6) --disable-polkit" if use gstreamer; then G2CONF="${G2CONF} --with-gstreamer=0.10" fi if ! use ppc && ! use apm && ! use acpi; then G2CONF="${G2CONF} --disable-battstat" fi if use ppc && ! use apm; then G2CONF="${G2CONF} --disable-battstat" fi } pkg_setup() { # networkmanager-0.7 is not going stable. # For networkmanager support, see -r1 G2CONF="${G2CONF} --disable-scrollkeeper --disable-schemas-install --enable-flags --disable-networkmanager $(use_enable gstreamer mixer-applet) $(use_with hal) $(use_enable ipv6) $(use_enable policykit polkit)" if ! use ppc && ! use apm && ! use acpi; then G2CONF="${G2CONF} --disable-battstat" fi if use ppc && ! use apm; then G2CONF="${G2CONF} --disable-battstat" fi } pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper --disable-schemas-install --enable-flags $(use_enable gstreamer mixer-applet) $(use_with hal) $(use_enable ipv6) $(use_enable networkmanager) $(use_enable policykit polkit)" if ! use ppc && ! use apm && ! use acpi; then G2CONF="${G2CONF} --disable-battstat" fi if use ppc && ! use apm; then G2CONF="${G2CONF} --disable-battstat" fi } pkg_setup() { G2CONF="${G2CONF} --disable-scrollkeeper --disable-schemas-install --enable-flags $(use_enable gstreamer mixer-applet) $(use_with hal) $(use_enable ipv6) $(use_enable networkmanager) $(use_enable policykit polkit)" if ! use ppc && ! use apm && ! use acpi; then G2CONF="${G2CONF} --disable-battstat" fi if use ppc && ! use apm; then G2CONF="${G2CONF} --disable-battstat" fi } pkg_setup() { G2CONF="${G2CONF} --disable-static" } pkg_setup() { G2CONF="${G2CONF} --disable-static" } pkg_setup() { G2CONF="${G2CONF} --disable-static" } pkg_setup() { G2CONF="${G2CONF} --disable-static" } pkg_setup() { # if consolekit is absent, g-v-m will fall back to the old # behavior of the pam_console time. G2CONF="${G2CONF} $(use_enable debug) $(use_enable automount) $(use_enable consolekit multiuser)" } pkg_setup() { G2CONF="${G2CONF} --disable-update-mimedb --disable-static $(use_enable eds aboutme)" } pkg_setup() { G2CONF="${G2CONF} --disable-update-mimedb --disable-static $(use_enable eds aboutme)" } pkg_setup() { G2CONF="${G2CONF} --disable-update-mimedb --disable-static --enable-canberra $(use_enable eds aboutme) $(use_enable hal) $(use_enable policykit policykit-gnome)" } pkg_setup() { G2CONF="${G2CONF} --disable-update-mimedb --disable-static --enable-canberra $(use_enable eds aboutme) $(use_enable hal) $(use_enable policykit policykit-gnome)" } pkg_setup() { G2CONF="${G2CONF} --disable-schemas-install --disable-static --disable-cdda --disable-howl $(use_enable acl) $(use_enable avahi) $(use_enable fam) $(use_enable gnutls) $(use_enable hal) $(use_enable ipv6) $(use_enable kerberos krb5) $(use_enable samba) $(use_enable ssl openssl)" # Useless ? --enable-http-neon if use hal ; then G2CONF="${G2CONF} --with-hal-mount=/usr/bin/gnome-mount --with-hal-umount=/usr/bin/gnome-umount --with-hal-eject=/usr/bin/gnome-eject" fi # this works because of the order of configure parsing # so should always be behind the use_enable options # foser