From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 58E83158041 for ; Mon, 1 Apr 2024 11:32:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D42692BC013; Mon, 1 Apr 2024 11:32:48 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B96962BC013 for ; Mon, 1 Apr 2024 11:32:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD72134319C for ; Mon, 1 Apr 2024 11:32:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 48F001621 for ; Mon, 1 Apr 2024 11:32:46 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1711970294.1ae252142948016425e9b911c1cea0d72f38e9a2.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/cannadic.eclass X-VCS-Directories: eclass/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 1ae252142948016425e9b911c1cea0d72f38e9a2 X-VCS-Branch: master Date: Mon, 1 Apr 2024 11:32:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 438b8bf3-fd41-4afa-a00e-21d95ef32734 X-Archives-Hash: e714f7e5e8c23d5aa1e3ebfb29beb011 commit: 1ae252142948016425e9b911c1cea0d72f38e9a2 Author: Julien Roy jroy ca> AuthorDate: Mon Apr 1 11:18:14 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Mon Apr 1 11:18:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ae25214 cannadic.eclass: remove unused eclass Signed-off-by: Julien Roy jroy.ca> eclass/cannadic.eclass | 149 ------------------------------------------------- 1 file changed, 149 deletions(-) diff --git a/eclass/cannadic.eclass b/eclass/cannadic.eclass deleted file mode 100644 index 4e8914f399..0000000000 --- a/eclass/cannadic.eclass +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: cannadic.eclass -# @MAINTAINER: -# Alessandro Barbieri -# @AUTHOR: -# Mamoru KOMACHI -# @SUPPORTED_EAPIS: 8 -# @BLURB: Function for Canna compatible dictionaries -# @DESCRIPTION: -# The cannadic eclass is used for installation and setup of Canna -# compatible dictionaries. - -case ${EAPI} in - 8) ;; - *) die "EAPI=${EAPI:-0} is not supported" ;; -esac - -EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm - -if [[ -z ${_CANNADIC_ECLASS} ]]; then -_CANNADIC_ECLASS=1 - -SRC_URI="mirror://gentoo/${P}.tar.gz" - -# You don't need to modify these -readonly _CANNADIC_CANNA_DIR="/var/lib/canna/dic/canna" -readonly _CANNADIC_DICS_DIR="/etc/canna/dics.dir.d/" - -# @FUNCTION: cannadic-install -# @DESCRIPTION: -# Installs dictionaries to ${EPREFIX}/var/lib/canna/dic/canna -cannadic-install() { - insinto ${_CANNADIC_CANNA_DIR} - insopts -m 0664 -o canna -g canna - doins "${@}" -} - -# @FUNCTION: dicsdir-install -# @DESCRIPTION: -# Installs dics.dir from ${DICSDIRFILE} -dicsdir-install() { - insinto ${_CANNADIC_DICS_DIR} - doins ${DICSDIRFILE} -} - -# @FUNCTION: cannadic_src_install -# @DESCRIPTION: -# Installs all dictionaries under ${WORKDIR} -# plus dics.dir and docs -cannadic_src_install() { - keepdir ${_CANNADIC_CANNA_DIR} - fowners canna:canna ${_CANNADIC_CANNA_DIR} - fperms 0775 ${_CANNADIC_CANNA_DIR} - - local f - for f in *.c[btl]d *.t; do - if [[ -s ${f} ]]; then - cannadic-install "${f}" - fi - done 2> /dev/null - - dicsdir-install - - einstalldocs -} - -# @FUNCTION: update-cannadic-dir -# @DESCRIPTION: -# Updates dics.dir for Canna Server, script for this part taken from Debian GNU/Linux -# -# compiles dics.dir files for Canna Server -# Copyright 2001 ISHIKAWA Mutsumi -# Licensed under the GNU General Public License, version 2. See the file -# /usr/portage/license/GPL-2 or . -update-cannadic-dir() { - einfo - einfo "Updating dics.dir for Canna ..." - einfo - - # write new dics.dir file in case we are interrupted - cat <<-EOF > "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - # dics.dir -- automatically generated file by Portage. - # DO NOT EDIT BY HAND. - EOF - - local f - for f in "${EROOT}${_CANNADIC_DICS_DIR}"/*.dics.dir; do - echo "# ${f}" >> "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - cat "${f}" >> "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - einfo "Added ${f}." - done - - mv "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir" || die - - einfo - einfo "Done." - einfo -} - -# @FUNCTION: cannadic_pkg_postinst -# @DESCRIPTION: -# Updates dics.dir and print out notice after install -cannadic_pkg_postinst() { - debug-print-function ${FUNCNAME} "${@}" - - update-cannadic-dir - - einfo "Please restart cannaserver for changes to propagate." - einfo "You need to modify your config file (~/.canna) to enable dictionaries." - - if [[ -n ${CANNADICS} ]]; then - einfo "e.g) add" - einfo - einfo " $(IFS=' ' ; echo ${CANNADICS[*]})" - einfo - einfo "to section use-dictionary()." - einfo "For details, see documents under ${EROOT}/usr/share/doc/${PF}." - fi - - einfo "If you do not have ~/.canna, you can find sample files in ${EROOT}/usr/share/canna." - ewarn "If you are upgrading from existing dictionary, you may need to recreate" - ewarn "user dictionary if you have one." -} - -# @FUNCTION: cannadic_pkg_postrm -# @DESCRIPTION: -# Updates dics.dir and print out notice after uninstall -cannadic_pkg_postrm() { - debug-print-function ${FUNCNAME} "${@}" - - update-cannadic-dir - - einfo "Please restart cannaserver for changes to propagate." - einfo "and modify your config file (~/.canna) to disable dictionary." - - if [[ -n ${CANNADICS} ]]; then - einfo "e.g) delete" - einfo - einfo " $(IFS=' ' ; echo ${CANNADICS[*]})" - einfo - einfo "from section use-dictionary()." - fi - - einfo -} - -fi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DAC2A158041 for ; Mon, 1 Apr 2024 11:18:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 968302BC020; Mon, 1 Apr 2024 11:18:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 727B62BC020 for ; Mon, 1 Apr 2024 11:18:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8548D343179 for ; Mon, 1 Apr 2024 11:18:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B5E01621 for ; Mon, 1 Apr 2024 11:18:34 +0000 (UTC) From: "Julien Roy" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Julien Roy" Message-ID: <1711970294.1ae252142948016425e9b911c1cea0d72f38e9a2.julien@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: eclass/ X-VCS-Repository: repo/proj/guru X-VCS-Files: eclass/cannadic.eclass X-VCS-Directories: eclass/ X-VCS-Committer: julien X-VCS-Committer-Name: Julien Roy X-VCS-Revision: 1ae252142948016425e9b911c1cea0d72f38e9a2 X-VCS-Branch: dev Date: Mon, 1 Apr 2024 11:18:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 18da0277-ceb3-4889-87f2-270fd29c85df X-Archives-Hash: 63094e45fd7a4e6b432102e9423fb157 Message-ID: <20240401111834.yuzFhtGi5-JRd4VQQUvdZWWnPdpngXITRRqWA1B8XVo@z> commit: 1ae252142948016425e9b911c1cea0d72f38e9a2 Author: Julien Roy jroy ca> AuthorDate: Mon Apr 1 11:18:14 2024 +0000 Commit: Julien Roy jroy ca> CommitDate: Mon Apr 1 11:18:14 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1ae25214 cannadic.eclass: remove unused eclass Signed-off-by: Julien Roy jroy.ca> eclass/cannadic.eclass | 149 ------------------------------------------------- 1 file changed, 149 deletions(-) diff --git a/eclass/cannadic.eclass b/eclass/cannadic.eclass deleted file mode 100644 index 4e8914f399..0000000000 --- a/eclass/cannadic.eclass +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# @ECLASS: cannadic.eclass -# @MAINTAINER: -# Alessandro Barbieri -# @AUTHOR: -# Mamoru KOMACHI -# @SUPPORTED_EAPIS: 8 -# @BLURB: Function for Canna compatible dictionaries -# @DESCRIPTION: -# The cannadic eclass is used for installation and setup of Canna -# compatible dictionaries. - -case ${EAPI} in - 8) ;; - *) die "EAPI=${EAPI:-0} is not supported" ;; -esac - -EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm - -if [[ -z ${_CANNADIC_ECLASS} ]]; then -_CANNADIC_ECLASS=1 - -SRC_URI="mirror://gentoo/${P}.tar.gz" - -# You don't need to modify these -readonly _CANNADIC_CANNA_DIR="/var/lib/canna/dic/canna" -readonly _CANNADIC_DICS_DIR="/etc/canna/dics.dir.d/" - -# @FUNCTION: cannadic-install -# @DESCRIPTION: -# Installs dictionaries to ${EPREFIX}/var/lib/canna/dic/canna -cannadic-install() { - insinto ${_CANNADIC_CANNA_DIR} - insopts -m 0664 -o canna -g canna - doins "${@}" -} - -# @FUNCTION: dicsdir-install -# @DESCRIPTION: -# Installs dics.dir from ${DICSDIRFILE} -dicsdir-install() { - insinto ${_CANNADIC_DICS_DIR} - doins ${DICSDIRFILE} -} - -# @FUNCTION: cannadic_src_install -# @DESCRIPTION: -# Installs all dictionaries under ${WORKDIR} -# plus dics.dir and docs -cannadic_src_install() { - keepdir ${_CANNADIC_CANNA_DIR} - fowners canna:canna ${_CANNADIC_CANNA_DIR} - fperms 0775 ${_CANNADIC_CANNA_DIR} - - local f - for f in *.c[btl]d *.t; do - if [[ -s ${f} ]]; then - cannadic-install "${f}" - fi - done 2> /dev/null - - dicsdir-install - - einstalldocs -} - -# @FUNCTION: update-cannadic-dir -# @DESCRIPTION: -# Updates dics.dir for Canna Server, script for this part taken from Debian GNU/Linux -# -# compiles dics.dir files for Canna Server -# Copyright 2001 ISHIKAWA Mutsumi -# Licensed under the GNU General Public License, version 2. See the file -# /usr/portage/license/GPL-2 or . -update-cannadic-dir() { - einfo - einfo "Updating dics.dir for Canna ..." - einfo - - # write new dics.dir file in case we are interrupted - cat <<-EOF > "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - # dics.dir -- automatically generated file by Portage. - # DO NOT EDIT BY HAND. - EOF - - local f - for f in "${EROOT}${_CANNADIC_DICS_DIR}"/*.dics.dir; do - echo "# ${f}" >> "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - cat "${f}" >> "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" || die - einfo "Added ${f}." - done - - mv "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir.update-new" "${EROOT}${_CANNADIC_CANNA_DIR}/dics.dir" || die - - einfo - einfo "Done." - einfo -} - -# @FUNCTION: cannadic_pkg_postinst -# @DESCRIPTION: -# Updates dics.dir and print out notice after install -cannadic_pkg_postinst() { - debug-print-function ${FUNCNAME} "${@}" - - update-cannadic-dir - - einfo "Please restart cannaserver for changes to propagate." - einfo "You need to modify your config file (~/.canna) to enable dictionaries." - - if [[ -n ${CANNADICS} ]]; then - einfo "e.g) add" - einfo - einfo " $(IFS=' ' ; echo ${CANNADICS[*]})" - einfo - einfo "to section use-dictionary()." - einfo "For details, see documents under ${EROOT}/usr/share/doc/${PF}." - fi - - einfo "If you do not have ~/.canna, you can find sample files in ${EROOT}/usr/share/canna." - ewarn "If you are upgrading from existing dictionary, you may need to recreate" - ewarn "user dictionary if you have one." -} - -# @FUNCTION: cannadic_pkg_postrm -# @DESCRIPTION: -# Updates dics.dir and print out notice after uninstall -cannadic_pkg_postrm() { - debug-print-function ${FUNCNAME} "${@}" - - update-cannadic-dir - - einfo "Please restart cannaserver for changes to propagate." - einfo "and modify your config file (~/.canna) to disable dictionary." - - if [[ -n ${CANNADICS} ]]; then - einfo "e.g) delete" - einfo - einfo " $(IFS=' ' ; echo ${CANNADICS[*]})" - einfo - einfo "from section use-dictionary()." - fi - - einfo -} - -fi