Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 193402
Collapse All | Expand All

(-)asymptote-1.33.ebuild (-16 / +20 lines)
Lines 2-11 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.33.ebuild,v 1.1 2007/08/28 21:13:22 centic Exp $
3
# $Header: /var/cvsroot/gentoo-x86/media-gfx/asymptote/asymptote-1.33.ebuild,v 1.1 2007/08/28 21:13:22 centic Exp $
4
4
5
inherit eutils elisp-common
5
inherit eutils elisp-common latex-package
6
6
7
DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
7
DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
8
HOMEPAGE="http://asymptote.sourceforge.net"
8
HOMEPAGE="http://asymptote.sourceforge.net/"
9
SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
9
SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
10
LICENSE="GPL-2"
10
LICENSE="GPL-2"
11
11
Lines 22-28 Link Here
22
	fftw? ( >=sci-libs/fftw-3.0.1 )
22
	fftw? ( >=sci-libs/fftw-3.0.1 )
23
	emacs? ( virtual/emacs )
23
	emacs? ( virtual/emacs )
24
	gsl? ( sci-libs/gsl )
24
	gsl? ( sci-libs/gsl )
25
	vim-syntax? ( app-editors/vim )"
25
	vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
26
DEPEND="${RDEPEND}
26
DEPEND="${RDEPEND}
27
	>=sys-devel/autoconf-2.5
27
	>=sys-devel/autoconf-2.5
28
	>=sys-devel/bison-1.875
28
	>=sys-devel/bison-1.875
Lines 31-36 Link Here
31
		virtual/ghostscript
31
		virtual/ghostscript
32
		>=sys-apps/texinfo-4.7-r1 )"
32
		>=sys-apps/texinfo-4.7-r1 )"
33
33
34
SITEFILE=64${PN}-gentoo.el
35
34
pkg_setup() {
36
pkg_setup() {
35
	# checking if Boehm garbage collector was compiled with c++ support
37
	# checking if Boehm garbage collector was compiled with c++ support
36
	if use boehm-gc ; then
38
	if use boehm-gc ; then
Lines 55-64 Link Here
55
src_unpack() {
57
src_unpack() {
56
	unpack ${A}
58
	unpack ${A}
57
59
58
	cd ${S}
60
	cd "${S}"
59
61
60
	# Fixing fftw and gsl enabling
62
	# Fixing fftw and gsl enabling
61
	epatch ${FILESDIR}/${P}-configure-ac.patch
63
	epatch "${FILESDIR}/${P}-configure-ac.patch"
62
	einfo "Patching configure.ac"
64
	einfo "Patching configure.ac"
63
	sed -i \
65
	sed -i \
64
		-e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
66
		-e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
Lines 67-73 Link Here
67
	einfo "Building configure"
69
	einfo "Building configure"
68
	WANT_AUTOCONF=2.5 autoconf
70
	WANT_AUTOCONF=2.5 autoconf
69
71
70
	epatch ${FILESDIR}/${P}-makefile.patch
72
	epatch "${FILESDIR}/${P}-makefile.patch"
71
}
73
}
72
74
73
src_compile() {
75
src_compile() {
Lines 83-88 Link Here
83
85
84
	econf ${myconf} $(use_with fftw) $(use_with gsl) || die "econf failed"
86
	econf ${myconf} $(use_with fftw) $(use_with gsl) || die "econf failed"
85
	emake || die "emake failed"
87
	emake || die "emake failed"
88
89
	if use emacs ; then
90
		elisp-compile base/*.el || die "elisp-compile failed"
91
	fi
86
}
92
}
87
93
88
src_install() {
94
src_install() {
Lines 94-118 Link Here
94
		target="install"
100
		target="install"
95
	fi
101
	fi
96
102
97
	make DESTDIR=${D} ${target} || die "make install failed"
103
	emake DESTDIR="${D}" ${target} || die "emake install failed"
98
104
99
	dodoc BUGS ChangeLog README ReleaseNotes TODO
105
	dodoc BUGS ChangeLog README ReleaseNotes TODO
100
106
101
	if use emacs ; then
107
	if use emacs ; then
102
		elisp-site-file-install base/asy-mode.el
108
		elisp-install ${PN} base/*.el base/*.elc
103
		elisp-site-file-install base/asy-keywords.el
109
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
104
		elisp-site-file-install "${FILESDIR}"/64asy-gentoo.el
105
	fi
110
	fi
106
111
107
	if use vim-syntax ; then
112
	if use vim-syntax ; then
108
		insinto /usr/share/vim/vimfiles/syntax
113
		insinto /usr/share/vim/vimfiles/syntax
109
		doins base/asy.vim
114
		doins base/asy.vim
115
		insinto /usr/share/vim/vimfiles/ftdetect
116
		doins "${FILESDIR}/asy-ftd.vim"
110
	fi
117
	fi
111
}
118
}
112
119
113
pkg_postinst() {
120
pkg_postinst() {
114
	einfo 'Updating TeX tree...'
121
	latex-package_rehash
115
	texhash &> /dev/null
116
122
117
	elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
123
	elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
118
	elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
124
	elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
Lines 121-128 Link Here
121
}
127
}
122
128
123
pkg_postrm() {
129
pkg_postrm() {
124
	einfo 'Updating TeX tree...'
130
	latex-package_rehash
125
	texhash &> /dev/null
131
	use emacs && elisp-site-regen
126
127
	[ -f "${SITELISP}"/site-gentoo.el ] && elisp-site-regen
128
}
132
}

Return to bug 193402