summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2006-12-14 11:35:06 +0000
committerAkinori Hattori <hattya@gentoo.org>2006-12-14 11:35:06 +0000
commit17a032ae5b54fd7a611c876ac544fe607d84c38e (patch)
treeab1e988ad8bdb946a7b64ab260a85fed64f44e8d
downloadhattya-17a032ae5b54fd7a611c876ac544fe607d84c38e.tar.gz
hattya-17a032ae5b54fd7a611c876ac544fe607d84c38e.tar.bz2
hattya-17a032ae5b54fd7a611c876ac544fe607d84c38e.zip
Initial revision.
svn path=/; revision=1
-rw-r--r--app-i18n/uim-svn/Manifest11
-rw-r--r--app-i18n/uim-svn/files/50uim-gentoo.el6
-rw-r--r--app-i18n/uim-svn/files/digest-uim-svn-200603201
-rw-r--r--app-i18n/uim-svn/metadata.xml8
-rw-r--r--app-i18n/uim-svn/uim-svn-20060320.ebuild148
-rw-r--r--eclass/subversion.eclass399
-rw-r--r--mail-client/sylpheed-svn/Manifest19
-rw-r--r--mail-client/sylpheed-svn/files/digest-sylpheed-svn-2.3.01
-rw-r--r--mail-client/sylpheed-svn/files/sylpheed-2.1-shared-mime-info.diff53
-rw-r--r--mail-client/sylpheed-svn/files/sylpheed-2.2-replace-aspell-with-enchant.diff102
-rw-r--r--mail-client/sylpheed-svn/metadata.xml8
-rw-r--r--mail-client/sylpheed-svn/sylpheed-svn-2.3.0.ebuild68
12 files changed, 824 insertions, 0 deletions
diff --git a/app-i18n/uim-svn/Manifest b/app-i18n/uim-svn/Manifest
new file mode 100644
index 0000000..af9080b
--- /dev/null
+++ b/app-i18n/uim-svn/Manifest
@@ -0,0 +1,11 @@
+AUX 50uim-gentoo.el 120 RMD160 de7359e37bde67449be61e99e1a271088c99a785 SHA1 c22d5cacc74a6b4c0b0733cff693b03e90c9e2b8 SHA256 151b731d5940fc029fd5428275fe670f85d9af501adb8e2b0e5ee5277b301ee3
+MD5 bb1358d0c54a9f19ec23bd58b8b52ef3 files/50uim-gentoo.el 120
+RMD160 de7359e37bde67449be61e99e1a271088c99a785 files/50uim-gentoo.el 120
+SHA256 151b731d5940fc029fd5428275fe670f85d9af501adb8e2b0e5ee5277b301ee3 files/50uim-gentoo.el 120
+EBUILD uim-svn-20060320.ebuild 2913 RMD160 7db407f1ec8e6f937c485d24456be2854f70cce0 SHA1 2b87247bc8f0ba53cae08b8bcf9464139b4d6e4e SHA256 856408a26c09cf5b5fcf0618e8216debdfa558799a4b0faa2f2fc0462a0d0ff3
+MD5 6fc4894616eaa539c5d5df16e01171d2 uim-svn-20060320.ebuild 2913
+RMD160 7db407f1ec8e6f937c485d24456be2854f70cce0 uim-svn-20060320.ebuild 2913
+SHA256 856408a26c09cf5b5fcf0618e8216debdfa558799a4b0faa2f2fc0462a0d0ff3 uim-svn-20060320.ebuild 2913
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-uim-svn-20060320 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-uim-svn-20060320 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-uim-svn-20060320 1
diff --git a/app-i18n/uim-svn/files/50uim-gentoo.el b/app-i18n/uim-svn/files/50uim-gentoo.el
new file mode 100644
index 0000000..a9c6484
--- /dev/null
+++ b/app-i18n/uim-svn/files/50uim-gentoo.el
@@ -0,0 +1,6 @@
+
+;;; uim site-lisp configuration
+
+(require 'uim-leim)
+(set-language-info "Japanese" 'input-method "japanese-@IM@-uim")
+
diff --git a/app-i18n/uim-svn/files/digest-uim-svn-20060320 b/app-i18n/uim-svn/files/digest-uim-svn-20060320
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/app-i18n/uim-svn/files/digest-uim-svn-20060320
@@ -0,0 +1 @@
+
diff --git a/app-i18n/uim-svn/metadata.xml b/app-i18n/uim-svn/metadata.xml
new file mode 100644
index 0000000..efd6b02
--- /dev/null
+++ b/app-i18n/uim-svn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>cjk</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-i18n/uim-svn/uim-svn-20060320.ebuild b/app-i18n/uim-svn/uim-svn-20060320.ebuild
new file mode 100644
index 0000000..d35a6a4
--- /dev/null
+++ b/app-i18n/uim-svn/uim-svn-20060320.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit elisp-common flag-o-matic kde-functions multilib subversion
+
+IUSE="X anthy canna dict eb emacs fep gtk immqt libedit m17n-lib nls qt3"
+
+ESVN_REPO_URI="http://anonsvn.freedesktop.org/svn/uim/trunk"
+ESVN_BOOTSTRAP="./autogen.sh"
+#ESVN_PATCHES="*.diff"
+
+DESCRIPTION="a multilingual input method library"
+HOMEPAGE="http://uim.freedesktop.org/"
+SRC_URI=""
+
+LICENSE="BSD GPL-2 LGPL-2.1"
+KEYWORDS="~x86"
+SLOT="0"
+
+DEPEND="${RDEPEND}
+ >=dev-util/intltool-0.31
+ gnome-base/librsvg
+ X? ( || ( (
+ x11-proto/xextproto
+ x11-proto/xproto
+ )
+ virtual/x11 ) )
+ nls? ( virtual/libintl )"
+RDEPEND="!app-i18n/uim
+ X? ( || ( (
+ x11-libs/libX11
+ x11-libs/libXft
+ x11-libs/libXt
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libXext
+ x11-libs/libXrender
+ )
+ virtual/x11 ) )
+ anthy? ( || ( app-i18n/anthy app-i18n/anthy-ss ) )
+ canna? ( app-i18n/canna )
+ eb? ( dev-libs/eb )
+ emacs? ( virtual/emacs )
+ gtk? ( >=x11-libs/gtk+-2 )
+ immqt? ( $(qt_min_version 3.3.4) )
+ libedit? ( dev-libs/libedit )
+ qt3? ( $(qt_min_version 3.3.4) )
+ m17n-lib? ( dev-libs/m17n-lib )"
+
+src_compile() {
+
+ local myconf="--enable-maintainer-mode"
+
+ if use dict && (use anthy || use canna); then
+ myconf="${myconf} --enable-dict"
+
+ else
+ ewarn "dict use flag should use with anthy or canna use flag. disabled."
+ myconf="${myconf} --disable-dict"
+
+ fi
+
+ if use qt3 || use immqt; then
+ set-qtdir 3
+ fi
+
+ econf \
+ $(use_enable emacs) \
+ $(use_enable fep) \
+ $(use_enable nls) \
+ $(use_with X x) \
+ $(use_with anthy) \
+ $(use_with canna) \
+ $(use_with eb) \
+ $(use_with immqt qt-immodule) \
+ $(use_with libedit) \
+ $(use_with qt3 qt) \
+ $(use_with gtk gtk2) \
+ $(use_with m17n-lib m17nlib) \
+ ${myconf} \
+ || die
+ emake || die
+
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install || die
+
+ dodoc AUTHORS ChangeLog* NEWS README*
+
+ rm doc/Makefile*
+ docinto doc
+ dodoc doc/*
+
+ local u
+
+ for u in emacs fep; do
+ if use ${u}; then
+ cd ${u}
+ docinto ${u}
+ dodoc README*
+ cd -
+ fi
+ done
+
+ if use emacs; then
+ local im
+
+ if has_version app-i18n/anthy || has_version app-i18n/anthy-ss; then
+ im="anthy"
+
+ elif has_version app-i18n/prime; then
+ im="prime"
+
+ else
+ im="skk"
+
+ fi
+
+ elisp-site-file-install "${FILESDIR}"/50uim-gentoo.el
+ dosed "s:@IM@:${im}:" ${SITELISP}/50uim-gentoo.el
+ fi
+
+}
+
+pkg_postinst() {
+
+ local chost
+
+ has_multilib_profile && chost=${CHOST}
+ use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules
+ use emacs && elisp-site-regen
+
+}
+
+pkg_postrm() {
+
+ local chost
+
+ has_multilib_profile && chost=${CHOST}
+ use gtk && gtk-query-immodules-2.0 > "${ROOT}"/etc/gtk-2.0/${chost}/gtk.immodules
+ has_version virtual/emacs && elisp-site-regen
+
+}
+
+# $Id$
diff --git a/eclass/subversion.eclass b/eclass/subversion.eclass
new file mode 100644
index 0000000..cead495
--- /dev/null
+++ b/eclass/subversion.eclass
@@ -0,0 +1,399 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+## --------------------------------------------------------------------------- #
+# Author: Akinori Hattori <hattya@gentoo.org>
+#
+# The subversion eclass is written to fetch the software sources from
+# subversion repositories like the cvs eclass.
+#
+#
+# Description:
+# If you use this eclass, the ${S} is ${WORKDIR}/${P}.
+# It is necessary to define the ESVN_REPO_URI variable at least.
+#
+## --------------------------------------------------------------------------- #
+
+inherit eutils
+
+ESVN="subversion.eclass"
+
+EXPORT_FUNCTIONS src_unpack
+
+HOMEPAGE="http://subversion.tigris.org/"
+DESCRIPTION="Based on the ${ECLASS} eclass"
+
+
+## -- add subversion in DEPEND
+#
+DEPEND="dev-util/subversion"
+
+
+## -- ESVN_STORE_DIR: subversion sources store directory
+#
+ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src"
+
+
+## -- ESVN_FETCH_CMD: subversion fetch command
+#
+ESVN_FETCH_CMD="svn checkout"
+
+## -- ESVN_UPDATE_CMD: subversion update command
+#
+ESVN_UPDATE_CMD="svn update"
+
+
+## -- ESVN_OPTIONS:
+#
+# the options passed to checkout or update.
+#
+: ESVN_OPTIONS=${ESVN_OPTIONS:=}
+
+
+## -- ESVN_REPO_URI: repository uri
+#
+# e.g. http://foo/trunk, svn://bar/trunk
+#
+# supported protocols:
+# http://
+# https://
+# svn://
+# svn+ssh://
+#
+: ESVN_REPO_URI=${ESVN_REPO_URI:=}
+
+
+## -- ESVN_PROJECT: project name of your ebuild (= name space)
+#
+# subversion eclass will check out the subversion repository like:
+#
+# ${ESVN_STORE_DIR}/${ESVN_PROJECT}/${ESVN_REPO_URI##*/}
+#
+# so if you define ESVN_REPO_URI as http://svn.collab.net/repo/svn/trunk or
+# http://svn.collab.net/repo/svn/trunk/. and PN is subversion-svn.
+# it will check out like:
+#
+# ${ESVN_STORE_DIR}/subversion/trunk
+#
+# this is not used in order to declare the name of the upstream project.
+# so that you can declare this like:
+#
+# # jakarta commons-loggin
+# ESVN_PROJECT=commons/logging
+#
+# default: ${PN/-svn}.
+#
+: ESVN_PROJECT=${ESVN_PROJECT:=${PN/-svn}}
+
+
+## -- ESVN_BOOTSTRAP:
+#
+# bootstrap script or command like autogen.sh or etc..
+#
+: ESVN_BOOTSTRAP=${ESVN_BOOTSTRAP:=}
+
+
+## -- ESVN_PATCHES:
+#
+# subversion eclass can apply pathces in subversion_bootstrap().
+# you can use regexp in this valiable like *.diff or *.patch or etc.
+# NOTE: this patches will apply before eval ESVN_BOOTSTRAP.
+#
+# the process of applying the patch is:
+# 1. just epatch it, if the patch exists in the path.
+# 2. scan it under FILESDIR and epatch it, if the patch exists in FILESDIR.
+# 3. die.
+#
+: ESVN_PATCHES=${ESVN_PATCHES:=}
+
+
+## -- ESVN_RESTRICT:
+#
+# this should be a space delimited list of subversion eclass features to
+# restrict.
+# export)
+# don't export the working copy to S.
+#
+: ESVN_RESTRICT=${ESVN_RESTRICT:=}
+
+
+## -- subversion_fetch() ----------------------------------------------------- #
+#
+# @param $1 - a repository URI. default is the ESVN_REPO_URI.
+#
+function subversion_fetch() {
+
+ local repo_uri="$(subversion__get_repository_uri "${@}")"
+
+ # check for the protocol
+ local protocol="${repo_uri%%:*}"
+
+ case "${protocol}" in
+ http|https)
+ if built_with_use dev-util/subversion nowebdav; then
+ echo
+ eerror "In order to emerge this package, you need to"
+ eerror "re-emerge subversion with USE=-nowebdav"
+ echo
+ die "${ESVN}: please run 'USE=-nowebdav emerge subversion'"
+ fi
+ ;;
+ svn|svn+ssh)
+ ;;
+ *)
+ die "${ESVN}: fetch from "${protocol}" is not yet implemented."
+ ;;
+ esac
+
+ # every time
+ addread "/etc/subversion"
+ addwrite "${ESVN_STORE_DIR}"
+
+ if [[ ! -d "${ESVN_STORE_DIR}" ]]; then
+ debug-print "${FUNCNAME}: initial checkout. creating subversion directory"
+ mkdir -p "${ESVN_STORE_DIR}" || die "${ESVN}: can't mkdir ${ESVN_STORE_DIR}."
+ fi
+
+ cd "${ESVN_STORE_DIR}" || die "${ESVN}: can't chdir to ${ESVN_STORE_DIR}"
+
+ local wc_path="$(subversion__get_wc_path "${repo_url}")"
+ local options="${ESVN_OPTIONS} --config-dir ${ESVN_STORE_DIR}/.subversion"
+
+ debug-print "${FUNCNAME}: ESVN_OPTIONS = \"${ESVN_OPTIONS}\""
+ debug-print "${FUNCNAME}: options = \"${options}\""
+
+ if [[ ! -d "${wc_path}/.svn" ]]; then
+ # first check out
+ einfo "subversion check out start -->"
+ einfo " repository: ${repo_uri}"
+
+ debug-print "${FUNCNAME}: ${ESVN_FETCH_CMD} ${options} ${repo_uri}"
+
+ mkdir -p "${ESVN_PROJECT}" || die "${ESVN}: can't mkdir ${ESVN_PROJECT}."
+ cd "${ESVN_PROJECT}" || die "${ESVN}: can't chdir to ${ESVN_PROJECT}"
+ ${ESVN_FETCH_CMD} ${options} "${repo_uri}" || die "${ESVN}: can't fetch from ${repo_uri}."
+
+ else
+ subversion_wc_info "${repo_uri}" || die "${ESVN}: unknown problem occurred while accessing working copy."
+
+ if [ "${ESVN_WC_URL}" != "$(subversion__get_repository_uri "${repo_uri}" 1)" ]; then
+ die "${ESVN}: ESVN_REPO_URI (or specified URI) and working copy's URL are not matched."
+ fi
+
+ # update working copy
+ einfo "subversion update start -->"
+ einfo " repository: ${repo_uri}"
+
+ debug-print "${FUNCNAME}: ${ESVN_UPDATE_CMD} ${options}"
+
+ cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}"
+ ${ESVN_UPDATE_CMD} ${options} || die "${ESVN}: can't update from ${repo_uri}."
+
+ fi
+
+ einfo " working copy: ${wc_path}"
+
+ if ! has "export" ${ESVN_RESTRICT}; then
+ cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}"
+
+ # export to the ${WORKDIR}
+ #* "svn export" has a bug. see http://bugs.gentoo.org/119236
+ #* svn export . "${S}" || die "${ESVN}: can't export to ${S}."
+ rsync -rlpgo --exclude=".svn/" . "${S}" || die "${ESVN}: can't export to ${S}."
+ fi
+
+ echo
+
+}
+
+
+## -- subversion_bootstrap() ------------------------------------------------ #
+#
+function subversion_bootstrap() {
+
+ if has "export" ${ESVN_RESTRICT}; then
+ return
+ fi
+
+ cd "${S}"
+
+ if [[ -n "${ESVN_PATCHES}" ]]; then
+ einfo "apply patches -->"
+
+ local p=
+
+ for p in ${ESVN_PATCHES}; do
+ if [[ -f "${p}" ]]; then
+ epatch "${p}"
+
+ else
+ local q=
+
+ for q in ${FILESDIR}/${p}; do
+ if [[ -f "${q}" ]]; then
+ epatch "${q}"
+
+ else
+ die "${ESVN}; ${p} is not found"
+
+ fi
+ done
+ fi
+ done
+
+ echo
+
+ fi
+
+ if [[ -n "${ESVN_BOOTSTRAP}" ]]; then
+ einfo "begin bootstrap -->"
+
+ if [[ -f "${ESVN_BOOTSTRAP}" && -x "${ESVN_BOOTSTRAP}" ]]; then
+ einfo " bootstrap with a file: ${ESVN_BOOTSTRAP}"
+ eval "./${ESVN_BOOTSTRAP}" || die "${ESVN}: can't execute ESVN_BOOTSTRAP."
+
+ else
+ einfo " bootstrap with commands: ${ESVN_BOOTSTRAP}"
+ eval "${ESVN_BOOTSTRAP}" || die "${ESVN}: can't eval ESVN_BOOTSTRAP."
+
+ fi
+ fi
+
+}
+
+
+## -- subversion_src_unpack() ------------------------------------------------ #
+#
+function subversion_src_unpack() {
+
+ subversion_fetch || die "${ESVN}: unknown problem occurred in subversion_fetch."
+ subversion_bootstrap || die "${ESVN}: unknown problem occurred in subversion_bootstrap."
+
+}
+
+
+## -- subversion_wc_info() --------------------------------------------------- #
+#
+# @param $1 - repository URI. default is ESVN_REPO_URI.
+#
+function subversion_wc_info() {
+
+ local repo_uri="$(subversion__get_repository_uri "${@}")"
+ local wc_path="$(subversion__get_wc_path "${repo_uri}")"
+
+ if [[ ! -e "${wc_path}" ]]; then
+ return 1
+ fi
+
+ local k
+
+ for k in url revision; do
+ export ESVN_WC_$(echo "${k}" | tr [a-z] [A-Z])="$(subversion__svn_info "${wc_path}" "${k}")"
+ done
+
+}
+
+
+## -- Private Functions
+
+
+## -- subversion__svn_info() ------------------------------------------------- #
+#
+# @param $1 - a target.
+# @param $2 - a key name.
+#
+function subversion__svn_info() {
+
+ local target="${1}"
+ local key="${2}"
+
+ env LC_ALL=C svn info "${target}" | grep -i "^${key}" | cut -d" " -f2-
+
+}
+
+
+## -- subversion__get_repository_uri() --------------------------------------- #
+#
+# @param $1 - a repository URI.
+# @param $2 - a peg revision is deleted from a return value if this is
+# specified.
+#
+function subversion__get_repository_uri() {
+
+ local repo_uri="${1:-${ESVN_REPO_URI}}"
+ local remove_peg_revision="${2}"
+
+ debug-print "${FUNCNAME}: repo_uri = ${repo_uri}"
+ debug-print "${FUNCNAME}: remove_peg_revision = ${remove_peg_revision}"
+
+ if [[ -z "${repo_uri}" ]]; then
+ die "${ESVN}: ESVN_REPO_URI (or specified URI) is empty."
+ fi
+
+ # delete trailing slash
+ if [[ -z "${repo_uri##*/}" ]]; then
+ repo_uri="${repo_uri%/}"
+ fi
+
+ if [[ -n "${remove_peg_revision}" ]]; then
+ if subversion__has_peg_revision "${repo_uri}"; then
+ repo_uri="${repo_uri%@*}"
+
+ debug-print "${FUNCNAME}: repo_uri has a peg revision"
+ debug-print "${FUNCNAME}: repo_uri = ${repo_uri}"
+ fi
+ fi
+
+ echo "${repo_uri}"
+
+}
+
+
+## -- subversion__get_wc_path() ---------------------------------------------- #
+#
+# @param $1 - a repository URI.
+#
+function subversion__get_wc_path() {
+
+ local repo_uri="$(subversion__get_repository_uri "${1}" 1)"
+
+ debug-print "${FUNCNAME}: repo_uri = ${repo_uri}"
+
+ echo "${ESVN_STORE_DIR}/${ESVN_PROJECT}/${repo_uri##*/}"
+
+}
+
+
+## -- subversion__has_peg_revision() ----------------------------------------- #
+#
+# @param $1 - a repository URI.
+#
+function subversion__has_peg_revision() {
+
+ local repo_uri="${1}"
+
+ debug-print "${FUNCNAME}: repo_uri = ${repo_uri}"
+
+ # repo_uri has peg revision ?
+ if [[ "${repo_uri}" != *@* ]]; then
+ debug-print "${FUNCNAME}: repo_uri does not have a peg revision."
+ return 1
+ fi
+
+ local peg_rev="${repo_uri##*@}"
+ local rev=$(subversion__svn_info "${repo_uri}" "revision")
+
+ debug-print "${FUNCNAME}: peg_rev = ${peg_rev}"
+ debug-print "${FUNCNAME}: rev = ${rev} "
+
+ if [[ "${peg_rev}" -eq "${rev}" ]]; then
+ return 0
+ fi
+
+ return 1
+
+}
+
+
+# $Id$
diff --git a/mail-client/sylpheed-svn/Manifest b/mail-client/sylpheed-svn/Manifest
new file mode 100644
index 0000000..6bc1fa6
--- /dev/null
+++ b/mail-client/sylpheed-svn/Manifest
@@ -0,0 +1,19 @@
+AUX sylpheed-2.1-shared-mime-info.diff 1637 RMD160 8439c41dbd570dfc37f7a0c268a47c1d263c6dcc SHA1 851f35dd097a26fc245a43117f95839c01f1ff1d SHA256 f1a8ee5c6597a8b31eb8abfdcd5775a56d0c2b4f1fe180abf9c04805d067ea72
+MD5 01498a2c484618f1d4c663eac986c55e files/sylpheed-2.1-shared-mime-info.diff 1637
+RMD160 8439c41dbd570dfc37f7a0c268a47c1d263c6dcc files/sylpheed-2.1-shared-mime-info.diff 1637
+SHA256 f1a8ee5c6597a8b31eb8abfdcd5775a56d0c2b4f1fe180abf9c04805d067ea72 files/sylpheed-2.1-shared-mime-info.diff 1637
+AUX sylpheed-2.2-replace-aspell-with-enchant.diff 3197 RMD160 4ddb9215a1c1f95ce00c71884309594403426089 SHA1 0caa97f42a7698b98af47826320a3fb9695298e3 SHA256 69dff1c6b72d83459e3e89b27ceacea4acd5fa9cb6f5a63293593decd9a73277
+MD5 0f4074345f62ede519f0b65730e4b762 files/sylpheed-2.2-replace-aspell-with-enchant.diff 3197
+RMD160 4ddb9215a1c1f95ce00c71884309594403426089 files/sylpheed-2.2-replace-aspell-with-enchant.diff 3197
+SHA256 69dff1c6b72d83459e3e89b27ceacea4acd5fa9cb6f5a63293593decd9a73277 files/sylpheed-2.2-replace-aspell-with-enchant.diff 3197
+EBUILD sylpheed-svn-2.3.0.ebuild 1441 RMD160 b96e3199dbb8a7072d08dbbfcc1f2f82840fc60c SHA1 e2617b10cea75c4af189e8a264b106f6cbb59558 SHA256 f6dd9b3ef2d853603ffa46883efe82fe5a7974067df38b405dd11c7094332aba
+MD5 595353fe4ec1f95929211761882ca812 sylpheed-svn-2.3.0.ebuild 1441
+RMD160 b96e3199dbb8a7072d08dbbfcc1f2f82840fc60c sylpheed-svn-2.3.0.ebuild 1441
+SHA256 f6dd9b3ef2d853603ffa46883efe82fe5a7974067df38b405dd11c7094332aba sylpheed-svn-2.3.0.ebuild 1441
+MISC metadata.xml 231 RMD160 648d342021559d00b487c6f2e0ca5036a0fcb84e SHA1 7ff44c36cd72cd2d6ab274e27b69a6f45ceed124 SHA256 aa52ef57f5156d5eb6abdb1e41b28cafdb6218a6738807d9e3797f99f344b5fb
+MD5 126ca8f672f0296d2f1e6830e6729a91 metadata.xml 231
+RMD160 648d342021559d00b487c6f2e0ca5036a0fcb84e metadata.xml 231
+SHA256 aa52ef57f5156d5eb6abdb1e41b28cafdb6218a6738807d9e3797f99f344b5fb metadata.xml 231
+MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-sylpheed-svn-2.3.0 1
+RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-sylpheed-svn-2.3.0 1
+SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-sylpheed-svn-2.3.0 1
diff --git a/mail-client/sylpheed-svn/files/digest-sylpheed-svn-2.3.0 b/mail-client/sylpheed-svn/files/digest-sylpheed-svn-2.3.0
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/mail-client/sylpheed-svn/files/digest-sylpheed-svn-2.3.0
@@ -0,0 +1 @@
+
diff --git a/mail-client/sylpheed-svn/files/sylpheed-2.1-shared-mime-info.diff b/mail-client/sylpheed-svn/files/sylpheed-2.1-shared-mime-info.diff
new file mode 100644
index 0000000..d16352d
--- /dev/null
+++ b/mail-client/sylpheed-svn/files/sylpheed-2.1-shared-mime-info.diff
@@ -0,0 +1,53 @@
+diff -urN sylpheed-2.1.3.orig/libsylph/Makefile.am sylpheed-2.1.3/libsylph/Makefile.am
+--- sylpheed-2.1.3.orig/libsylph/Makefile.am 2005-09-08 16:24:49.000000000 +0900
++++ sylpheed-2.1.3/libsylph/Makefile.am 2005-10-02 20:56:56.940000000 +0900
+@@ -1,7 +1,8 @@
+
+ AM_CPPFLAGS = \
+ -DG_LOG_DOMAIN=\"LibSylph\" \
+- -DSYSCONFDIR=\""$(sysconfdir)"\"
++ -DSYSCONFDIR=\""$(sysconfdir)"\" \
++ -DDATADIR=\""$(datadir)"\"
+
+ INCLUDES = $(GLIB_CFLAGS) -I$(top_srcdir) -I$(includedir)
+
+diff -urN sylpheed-2.1.3.orig/libsylph/procmime.c sylpheed-2.1.3/libsylph/procmime.c
+--- sylpheed-2.1.3.orig/libsylph/procmime.c 2005-09-22 20:18:02.000000000 +0900
++++ sylpheed-2.1.3/libsylph/procmime.c 2005-10-02 20:57:55.920000000 +0900
+@@ -1051,6 +1051,9 @@
+ g_free(dir);
+ mime_type_list = g_list_concat(mime_type_list, list);
+
++ list = procmime_get_mime_type_list(DATADIR "/mime/globs");
++ mime_type_list = g_list_concat(mime_type_list, list);
++
+ if (!mime_type_list) {
+ g_warning("mime.types not found\n");
+ return NULL;
+@@ -1103,7 +1106,7 @@
+ g_strstrip(buf);
+
+ p = buf;
+- while (*p && !g_ascii_isspace(*p)) p++;
++ while (*p && !g_ascii_isspace(*p) && *p != ':') p++;
+ if (*p) {
+ *p = '\0';
+ p++;
+@@ -1116,7 +1119,7 @@
+ mime_type->type = g_strdup(buf);
+ mime_type->sub_type = g_strdup(delim + 1);
+
+- while (*p && g_ascii_isspace(*p)) p++;
++ while (*p && (g_ascii_isspace(*p) || *p == '*' || *p == '.')) p++;
+ if (*p)
+ mime_type->extension = g_strdup(p);
+ else
+@@ -1128,7 +1131,7 @@
+ fclose(fp);
+
+ if (!list)
+- g_warning("Can't read mime.types\n");
++ g_warning("Can't read %s\n", file);
+
+ return list;
+ }
diff --git a/mail-client/sylpheed-svn/files/sylpheed-2.2-replace-aspell-with-enchant.diff b/mail-client/sylpheed-svn/files/sylpheed-2.2-replace-aspell-with-enchant.diff
new file mode 100644
index 0000000..16ddb97
--- /dev/null
+++ b/mail-client/sylpheed-svn/files/sylpheed-2.2-replace-aspell-with-enchant.diff
@@ -0,0 +1,102 @@
+diff -ur sylpheed-2.2.0.orig/src/compose.c sylpheed-2.2.0/src/compose.c
+--- sylpheed-2.2.0.orig/src/compose.c 2006-02-07 11:53:05.000000000 +0900
++++ sylpheed-2.2.0/src/compose.c 2006-02-15 23:40:01.000000000 +0900
+@@ -64,7 +64,7 @@
+ #if USE_GTKSPELL
+ # include <gtk/gtkradiomenuitem.h>
+ # include <gtkspell/gtkspell.h>
+-# include <aspell.h>
++# include <enchant/enchant.h>
+ #endif
+
+ #include <stdio.h>
+@@ -459,6 +459,9 @@
+ GtkWidget *widget);
+ static void compose_set_spell_lang_cb (GtkWidget *widget,
+ gpointer data);
++static void compose_list_dicts_cb (const char *lang_tag,
++ const char *provider_name, const char *provider_desc,
++ const char *provider_file, void *user_data);
+ #endif
+
+ static void compose_attach_drag_received_cb (GtkWidget *widget,
+@@ -4874,33 +4877,34 @@
+ }
+
+ #if USE_GTKSPELL
++static void compose_list_dicts_cb(const char *lang_tag,
++ const char *provider_name, const char *provider_desc,
++ const char *provider_file, void *user_data)
++{
++ GQueue *queue = (GQueue *)user_data;
++
++ if (g_queue_index(queue, (gconstpointer)lang_tag) == -1) {
++ g_queue_push_tail(queue, g_strdup(lang_tag));
++ }
++}
++
+ static void compose_set_spell_lang_menu(Compose *compose)
+ {
+- AspellConfig *config;
+- AspellDictInfoList *dlist;
+- AspellDictInfoEnumeration *dels;
+- const AspellDictInfo *entry;
++ EnchantBroker *broker;
++ GQueue *langs;
+ GSList *dict_list = NULL, *menu_list = NULL, *cur;
+ GtkWidget *menu;
+ gboolean lang_set = FALSE;
+
+- config = new_aspell_config();
+- dlist = get_aspell_dict_info_list(config);
+- delete_aspell_config(config);
+-
+- dels = aspell_dict_info_list_elements(dlist);
+- while ((entry = aspell_dict_info_enumeration_next(dels)) != 0) {
+- dict_list = g_slist_append(dict_list, (gchar *)entry->name);
+- if (compose->spell_lang != NULL &&
+- g_ascii_strcasecmp(compose->spell_lang, entry->name) == 0)
+- lang_set = TRUE;
+- }
+- delete_aspell_dict_info_enumeration(dels);
++ broker = enchant_broker_init();
++ langs = g_queue_new();
++ enchant_broker_list_dicts(broker, compose_list_dicts_cb, langs);
++ enchant_broker_free(broker);
+
+ menu = gtk_menu_new();
+
+- for (cur = dict_list; cur != NULL; cur = cur->next) {
+- gchar *dict = (gchar *)cur->data;
++ while (g_queue_get_length(langs) > 0) {
++ gchar *dict = g_queue_pop_head(langs);
+ GtkWidget *item;
+
+ if (dict == NULL) continue;
+@@ -4910,13 +4914,16 @@
+ (GTK_RADIO_MENU_ITEM(item));
+ if (compose->spell_lang != NULL &&
+ g_ascii_strcasecmp(compose->spell_lang, dict) == 0)
++ {
+ gtk_check_menu_item_set_active
+ (GTK_CHECK_MENU_ITEM(item), TRUE);
++ lang_set = TRUE;
++ }
+ gtk_menu_shell_append(GTK_MENU_SHELL(menu), item);
+ g_signal_connect(G_OBJECT(item), "activate",
+ G_CALLBACK(compose_set_spell_lang_cb),
+ compose);
+- g_object_set_data(G_OBJECT(item), "spell-lang", dict);
++ g_object_set_data_full(G_OBJECT(item), "spell-lang", dict, g_free);
+ gtk_widget_show(item);
+
+ if (!lang_set && g_ascii_strcasecmp("en", dict) == 0)
+@@ -4924,6 +4931,8 @@
+ (GTK_CHECK_MENU_ITEM(item), TRUE);
+ }
+
++ g_queue_free(langs);
++
+ gtk_widget_show(menu);
+ gtk_menu_item_set_submenu(GTK_MENU_ITEM(compose->spell_menu), menu);
+ }
diff --git a/mail-client/sylpheed-svn/metadata.xml b/mail-client/sylpheed-svn/metadata.xml
new file mode 100644
index 0000000..01f3621
--- /dev/null
+++ b/mail-client/sylpheed-svn/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>net-mail</herd>
+ <maintainer>
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/mail-client/sylpheed-svn/sylpheed-svn-2.3.0.ebuild b/mail-client/sylpheed-svn/sylpheed-svn-2.3.0.ebuild
new file mode 100644
index 0000000..fa22b80
--- /dev/null
+++ b/mail-client/sylpheed-svn/sylpheed-svn-2.3.0.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit autotools eutils subversion
+
+IUSE="crypt ipv6 ldap nls pda spell ssl xface"
+
+ESVN_REPO_URI="svn://sylpheed.sraoss.jp/sylpheed/trunk"
+ESVN_BOOTSTRAP="./autogen.sh -V"
+ESVN_PATCHES="${ESVN_PROJECT}-2.*.diff"
+
+DESCRIPTION="A lightweight email client and newsreader"
+HOMEPAGE="http://sylpheed.sraoss.jp/"
+SRC_URI=""
+
+RESTRICT="nomirror"
+LICENSE="GPL-2"
+KEYWORDS="~ia64 ~x86"
+SLOT="0"
+
+PROVIDE="virtual/sylpheed"
+
+DEPEND=">=x11-libs/gtk+-2.4
+ nls? ( >=sys-devel/gettext-0.12.1 )
+ crypt? ( >=app-crypt/gpgme-0.4.5 )
+ ldap? ( >=net-nds/openldap-2.0.11 )
+ pda? ( app-pda/jpilot )
+ spell? ( app-text/gtkspell )
+ ssl? ( dev-libs/openssl )
+ xface? ( >=media-libs/compface-1.4 )"
+RDEPEND="${DEPEND}
+ app-misc/mime-types
+ x11-misc/shared-mime-info
+ !mail-client/sylpheed"
+
+src_compile() {
+
+ econf \
+ `use_enable crypt gpgme` \
+ `use_enable ipv6` \
+ `use_enable ldap` \
+ `use_enable nls` \
+ `use_enable pda jpilot` \
+ `use_enable spell gtkspell` \
+ `use_enable ssl` \
+ `use_enable xface compface` \
+ || die
+ emake || die
+
+}
+
+src_install() {
+
+ emake DESTDIR="${D}" install
+
+ dodir /usr/share/pixmaps
+ insinto /usr/share/pixmaps
+ doins *.png
+
+ insinto /usr/share/applications
+ doins sylpheed.desktop
+
+ dodoc AUTHORS ChangeLog* NEWS* README* TODO*
+
+}
+
+# $Id$