Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 247755 Details for
Bug 199220
app-emacs/x-symbol-4.51 (New package) X-Symbol ebuild for Emacs (not XEmacs!)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
=app-emacs/x-symbol -4.5.1_rc3 sanitized ebuild
x-symbol-4.5.1_rc3.ebuild (text/plain), 4.79 KB, created by
Sebastian Glita
on 2010-09-18 06:44:48 UTC
(
hide
)
Description:
=app-emacs/x-symbol -4.5.1_rc3 sanitized ebuild
Filename:
MIME Type:
Creator:
Sebastian Glita
Created:
2010-09-18 06:44:48 UTC
Size:
4.79 KB
patch
obsolete
># Copyright 1999-2010 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >RESTRICT="primaryuri" > >NEED_EMACS="22" # at least >EMACS_22="emacs-${NEED_EMACS}" > >EAPI="2" >inherit elisp versionator > >PV_A=($(get_version_components)) ># 4.5.1-r3 -> 4.51 >MY_P="${PN}-${PV_A[0]}.${PV_A[1]}${PV_A[2]}" > >FLK=2.6a >ADF=0.1 > >DESCRIPTION="X-Symbol package for XEmacs (semi WYSIWYG for LaTeX, HTML)" >HOMEPAGE="http://x-symbol.sourceforge.net" >SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.gz > mirror://sourceforge/${PN}/x-font-lock-${FLK}.tar.gz > mirror://sourceforge/${PN}/${PN}-additional-fonts-${ADF}.tar.gz" > >LICENSE="GPL" >SLOT="0" >KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc x86" >IUSE="X examples doc" > >RDEPEND="app-admin/eselect-emacs" >DEPEND="${RDEPEND} > X? ( x11-apps/bdftopcf x11-apps/mkfontdir dev-lang/perl ) > doc? ( virtual/latex-base sys-apps/texinfo app-text/texi2html )" > >S="${WORKDIR}/${PN}" >SITEFILE=60${PN}-gentoo.el > >pkg_setup() { > use X || die "Please build with USE flag \`X' enabled." > > local eemacs="$(eselect --no-color --brief emacs show)" > ! has_version "=virtual/${EMACS_22}" || test "${eemacs// /}" != "${EMACS_22}" || return > > ewarn "Please have \`=app-editors/${EMACS_22}*' installed and \`eselect emacs set ${EMACS_22}'." > eerror "Benefit from X-Symbol requires major version ${NEED_EMACS} of GNU Emacs." > die "Some of the conditions above are currently unsatisfied." >} > >src_unpack() { > unpack "${MY_P}-src.tar.gz" > unpack "x-font-lock-${FLK}.tar.gz" >} > >src_prepare() { > cd "${S}"/lisp > sed -i -e "s/# install_el/install_el #/" \ > -e "/echo [^'].*elcdir/s/[\$](elcdir)/@SITELISP@/" Makefile > > cd "${S}"/fonts > sed -i -e "s/-xset/-echo xset/" Makefile > > if use doc ; then > cd "${S}"/man > sed -i -e "/^index[.]html[:]/s/ x-symbol.init//" Makefile > has_version '<app-text/texi2html-1.76' || \ > sed -i -e '/T2H_DEFAULT_print_Top_footer(\$fh);/s/);/, 0);/' x-symbol.init > sed -i -e "/^@direntry/,+1s/\"\$/\"./" x-symbol.texi > fi >} > >src_compile() { > cd "${S}"/../x-font-lock/lisp > elisp-compile x-font-lock.el || die "x-font-lock.el compile failed" > > cd "${S}"/fonts > make all || die "making fonts failed" > > use doc || return > > cd "${S}"/man > make EMACS=emacs all || die "making documentation failed" >} > >src_install() { > local startupfile="${S}"/${SITEFILE} > local datadir="${SITEETC}"/${PN} > local fontdir="${datadir}"/pcf > > echo "(when (string< \"${NEED_EMACS}.\" emacs-version)" >> "${startupfile}" > sed -n -e "s:^\\(.*\\)\$:\\1:p" "${FILESDIR}"/${SITEFILE} >> "${startupfile}" > sed -n -e "/^;;.*-data-directory/{p;q}" -e "0~1d" "${S}"/lisp/x-symbol-site.el | \ > sed -n -e "\${{s:;;::};{s:[~]/[.]xemacs/etc/${PN}:${datadir}:};p}" >> "${startupfile}" > echo "(load \"x-symbol-startup\"))" >> "${startupfile}" > > cd "${S}"/lisp > einstall startupfile="${startupfile}" || die "installing package failed" > > elisp-site-file-install "${startupfile}" || die "installing site file failed" > > cd "${S}"/.. > elisp-install "${PN}" x-font-lock/lisp/x-font-lock.el{,c} || die "installing x-font-lock failed" > > cd "${S}" > dodir "${datadir}" || die "creating data-directory failed" > insinto "${datadir}" > doins etc/* || die "copying data-directory failed" > dodir "${fontdir}" || die "creating font-directory failed" > insinto "${fontdir}" > doins pcf/* || die "copying font-directory failed" > > if use doc ; then > cd "${S}"/man > { \ > doinfo ${PN}.info; \ > dodoc ${PN}.{pdf,ps,texi}; \ > dohtml ${PN}/*.html; \ > dodoc ../ChangeLog* ../README; \ > } || die "copying documentation failed" > fi > > if use examples ; then > dodoc "${S}/lisp/x-symbol-site.el" || die "copying an example initialisation file failed" > fi > > insinto "/usr/share/doc/${PF}" > doins "${DISTDIR}/${PN}-additional-fonts-${ADF}.tar.gz" || die "copying additional fonts failed" >} > >pkg_postinst() { > elisp-site-regen > > einfo > > ewarn "Perform \`eselect emacs set ${EMACS_22}' whenever X-Symbol support is desired." > > einfo > > einfo "To enable X-Symbol on Emacs startup, add" > einfo "(when (string< \"${NEED_EMACS}\" emacs-version)" > einfo " (require 'x-symbol-hooks) " > einfo " (x-symbol-initialize) " > einfo " (require 'x-font-lock)) " > einfo "to your ~/.emacs file." > > einfo > > einfo "There are additional fonts you may use in" > einfo "/usr/share/doc/${PF}/${PN}-additional-fonts-${ADF}.tar.gz" > > if use doc ; then > elog > elog "You may consult /usr/share/doc/${PF}" > elog "for further documentation on X-Symbol." > elog "Or point your browser to /usr/share/doc/${PF}/html/index.html." > elog "There is also an info page available: do \`info ${PN}'." > fi > > if use examples ; then > elog > elog "Please visit /usr/share/doc/${PF}/x-symbol-site.el" > elog "for how to configure X-Symbol from your ~/.emacs file." > fi > > einfo >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 199220
:
136032
|
136039
|
136041
|
136689
|
140363
|
152135
|
247746
|
247747
|
247751
|
247753
|
247755
|
247872