View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Sat Dec 12, 2009 11:20 pm Post subject: [ebuild request] google desktop |
|
|
Hi guys,
since I'm having several ebooks and lecture notes from University and Google Desktop's indexing and search functionality seems to be superior to other desktop "search engines"
I'm requesting an ebuild for "Google Desktop" for linux (if possible 64bit since that probably would speed things up even more)
this would speed up and improve look-up of information and studying for me (and I'm sure several other students also) significantly
Many many thanks in advance _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Dec 13, 2009 4:11 pm Post subject: |
|
|
In fact, it pretty useful |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon Dec 14, 2009 2:22 am Post subject: |
|
|
kernelOfTruth wrote: | d2_racing wrote: | In fact, it pretty useful |
and it's finally indexing now
unfortunately it's taking way to long - seems like it's only indexing while idle ?!
over at https://bugs.gentoo.org/show_bug.cgi?id=183492 there's an ebuild | That ebuild is too old and has no support for am64. Use this instead: http://omploader.org/vMnptYQ (google-desktop-1.2)
Code: | # Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header$
inherit eutils rpm
# mozextension is broken, truely broken. Look at lightning ebuild to get the
# correct version
DESCRIPTION="Google Desktop"
HOMEPAGE="http://desktop.google.com/linux/"
SRC_URI="x86? ( http://dl.google.com/linux/rpm/stable/i386/google-desktop-linux-current.rpm )
amd64? ( http://dl.google.com/linux/rpm/stable/x86_64/google-desktop-linux-current.rpm )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="firefox thunderbird msoffice"
RDEPEND="virtual/libc
x11-libs/libX11
x11-libs/libXi
msoffice? ( app-text/catdoc app-text/wv )
dev-libs/atk
dev-libs/glib
x11-libs/gtk+
x11-libs/pango"
DEPEND="${RDEPEND}"
ENVDDIR="/etc/env.d/"
ENVDFILE="45google-desktop"
S="${WORKDIR}"
#RESTRICT="fetch strip"
#pkg_nofetch() {
# einfo "Please download ${A} yourself from http://desktop.google.com/linux"
# einfo "and place it in ${DISTDIR}"
# einfo "Please ensure that you download the correct file corresponding to"
# einfo "your arch"
#}
src_unpack() {
rpm_src_unpack || die "Unpack failed"
# Patch the Categories properly
cd $S/opt/google/desktop/xdg
sed -i -e '/^Categories=/s/$/;/' *.desktop
}
src_compile() {
:
}
src_install() {
# This is a workaround for the buggy xpi_install from mozextension
# Usage mozi_xpi <from_unpacked_dir> <to_mozilla_dir>
function mozi_xpi() {
local from_dir="$1" to_dir="$2"
cd "$from_dir"
emid="$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p;' \
install.rdf | sed -e '1d')"
einfo "DEBUG: Generated $emid for ${from_dir##*\/}"
test -z "${emid}" && die "Generating extension id failed"
dodir "$to_dir/extensions/${emid}"
insinto "$to_dir/extensions/${emid}"
doins "$from_dir"/*
dodir "$to_dir"/{chrome,extensions}.d
echo "extension,${emid}" > "$D/$to_dir/extensions.d/$PN"
}
# Define some variables to shorten commands
local google_d=/opt/google/desktop
local target_bin=$google_d/bin
local target_lib=$google_d/lib
# do not include gdl-update since its RH specific
#dodir /etc/cron.hourly
#insinto /etc/cron.hourly
#doins etc/cron.hourly/gdl-update
dodir /opt/google
insinto $google_d
doins ${S}$google_d/*
doins ${S}$google_d/.gdl_installed_files
exeinto $target_bin
doexe ${S}/$target_bin/gdl*
doexe ${S}/$target_bin/extract_msoffice_content.sh
doexe ${S}/$target_bin/xdg-open
insinto $google_d/resource
doins ${S}/$google_d/resource/*
insinto $google_d/xdg
doins ${S}/$google_d/xdg/*
dosym $target_bin/gdlinux /opt/bin/gdlinux
into /opt/google/desktop
insinto $google_d
dolib.so ${S}/$google_d/lib/*
# Apparently, since I don't define ABI, everything is put into
# ${target_lib}64. We can get around this by doing the dolib.so stuff
# ourselves, or by defining ABI=x86 which will screw up other stuff such as
# firefox and thunderbird plugins. The least troublesome method is to just
# create a softlink ;)
use amd64 && dosym ${target_lib}64 $target_lib
dodir /var/cache/google/desktop
keepdir /var/cache/google/desktop
fperms 755 /var/cache/google
fperms 777 /var/cache/google/desktop
fperms o+t /var/cache/google/desktop
cd ${S}/$google_d/xdg
insinto /usr/share/desktop-directories
doins google-gdl.directory
domenu google-gdl.desktop google-gdl-preferences.desktop
# Install Extensions
if use firefox; then
has_version '>=www-client/mozilla-firefox-1.5' && \
mozi_xpi ${S}/$google_d/plugin/firefox \
"/usr/$(get_libdir)/mozilla-firefox"
has_version '>=www-client/mozilla-firefox-bin-1.5' && \
mozi_xpi ${S}/$google_d/plugin/firefox "/opt/firefox"
fi
if use thunderbird; then
has_version '>=mail-client/mozilla-thunderbird-1.5' && \
mozi_xpi ${S}/$google_d/plugin/thunderbird \
"/usr/$(get_libdir)/mozilla-thunderbird"
has_version '>=mail-client/mozilla-thunderbird-bin-1.5' && \
mozi_xpi ${S}/$google_d/plugin/thunderbird "/opt/thunderbird"
fi
# Update env.d
dodir /etc/env.d
echo "LDPATH=$target_lib" > ${D}${ENVDDIR}${ENVDFILE}
}
pkg_postinst ()
{
env-update
source /etc/profile
} |
_________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon Dec 14, 2009 6:51 am Post subject: |
|
|
Does it have an option to never to connect to internet EVER? Only search what's on my hard drive and never leave home? If yes, then that's useful. Otherwise, I am not opening my personal stuff to google! |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon Dec 14, 2009 7:02 am Post subject: |
|
|
devsk wrote: | Does it have an option to never to connect to internet EVER? Only search what's on my hard drive and never leave home? If yes, then that's useful. Otherwise, I am not opening my personal stuff to google! | You can set its preferences to leave all your precious data alone and not connect to the internet ever
-- removed earlier dumb reply -- _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon Dec 14, 2009 9:01 pm Post subject: |
|
|
kernelOfTruth wrote: | thanks for the ebuild ppurka !
I modified the ebuild from bugs.gentoo.org to use the 64 bit version before you posted but it (no gdl) wouldn't run for me (then I was running a kernel with BFS)
now I switched back to a kernel with CFS and I'm running 32 bit version that works ^^
I'll try your ebuild (64 bit version) later, currently it's at around 97% of indexing my files - I won't interrupt it until it's finished | Well, I am running amd64 with 2.6.31-zen6, and google-desktop works here (with my ebuild). FYI, I have been using this since early July.
There are several modifications in my ebuild,- please do a gvimdiff or equivalent to see my comments and modifications. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
devsk Advocate
Joined: 24 Oct 2003 Posts: 2995 Location: Bay Area, CA
|
Posted: Mon Dec 14, 2009 9:09 pm Post subject: |
|
|
ppurka wrote: | kernelOfTruth wrote: | thanks for the ebuild ppurka !
I modified the ebuild from bugs.gentoo.org to use the 64 bit version before you posted but it (no gdl) wouldn't run for me (then I was running a kernel with BFS)
now I switched back to a kernel with CFS and I'm running 32 bit version that works ^^
I'll try your ebuild (64 bit version) later, currently it's at around 97% of indexing my files - I won't interrupt it until it's finished | Well, I am running amd64 with 2.6.31-zen6, and google-desktop works here (with my ebuild). FYI, I have been using this since early July.
There are several modifications in my ebuild,- please do a gvimdiff or equivalent to see my comments and modifications. | why haven't you submitted your ebuild to BGO? |
|
Back to top |
|
|
ppurka Advocate
Joined: 26 Dec 2004 Posts: 3256
|
Posted: Mon Dec 14, 2009 10:15 pm Post subject: |
|
|
devsk wrote: | ppurka wrote: | kernelOfTruth wrote: | thanks for the ebuild ppurka !
I modified the ebuild from bugs.gentoo.org to use the 64 bit version before you posted but it (no gdl) wouldn't run for me (then I was running a kernel with BFS)
now I switched back to a kernel with CFS and I'm running 32 bit version that works ^^
I'll try your ebuild (64 bit version) later, currently it's at around 97% of indexing my files - I won't interrupt it until it's finished | Well, I am running amd64 with 2.6.31-zen6, and google-desktop works here (with my ebuild). FYI, I have been using this since early July.
There are several modifications in my ebuild,- please do a gvimdiff or equivalent to see my comments and modifications. | why haven't you submitted your ebuild to BGO? | Because I haven't tested it on 32bit machine. I guess I just forgot to do this testing, and then forgot to submit the ebuild too. _________________ emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/ |
|
Back to top |
|
|
|