diff options
author | Harald van Dijk <truedfx@gentoo.org> | 2009-06-09 21:04:10 +0000 |
---|---|---|
committer | Harald van Dijk <truedfx@gentoo.org> | 2009-06-09 21:04:10 +0000 |
commit | 339424ae106b7601ac6b7e6ff1e6f41cbafb2bd2 (patch) | |
tree | b92859036e917ab7783f583742d86220a5261323 | |
parent | Initial commit (diff) | |
download | gentoo-2-339424ae106b7601ac6b7e6ff1e6f41cbafb2bd2.tar.gz gentoo-2-339424ae106b7601ac6b7e6ff1e6f41cbafb2bd2.tar.bz2 gentoo-2-339424ae106b7601ac6b7e6ff1e6f41cbafb2bd2.zip |
fpc: Install HTML documentation for fpc-ide; fpc/fpc-ide/lazarus: use clean fpc configuration and drop warnings about fpc.cfg
(Portage version: 2.2_rc33/cvs/Linux i686)
-rw-r--r-- | dev-lang/fpc-ide/ChangeLog | 5 | ||||
-rw-r--r-- | dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild | 16 | ||||
-rw-r--r-- | dev-lang/fpc/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/fpc/fpc-2.2.4-r1.ebuild | 133 | ||||
-rw-r--r-- | dev-lang/lazarus/ChangeLog | 6 | ||||
-rw-r--r-- | dev-lang/lazarus/lazarus-0.9.26-r3.ebuild | 24 |
6 files changed, 173 insertions, 19 deletions
diff --git a/dev-lang/fpc-ide/ChangeLog b/dev-lang/fpc-ide/ChangeLog index 45b83b0137ef..e2247d102d6a 100644 --- a/dev-lang/fpc-ide/ChangeLog +++ b/dev-lang/fpc-ide/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-lang/fpc-ide # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc-ide/ChangeLog,v 1.13 2009/04/23 21:05:02 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc-ide/ChangeLog,v 1.14 2009/06/09 21:04:09 truedfx Exp $ + + 09 Jun 2009; Harald van Dijk <truedfx@gentoo.org> fpc-ide-2.2.4.ebuild: + Build with clean fpc config, add note about documentation *fpc-ide-2.2.4 (23 Apr 2009) diff --git a/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild b/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild index 0cf4dd53f96c..be1e339f05b2 100644 --- a/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild +++ b/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild,v 1.1 2009/04/23 21:05:02 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc-ide/fpc-ide-2.2.4.ebuild,v 1.2 2009/06/09 21:04:09 truedfx Exp $ S="${WORKDIR}/fpcbuild-${PV}/fpcsrc/ide" @@ -14,11 +14,20 @@ KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="" DEPEND="~dev-lang/fpc-${PV}" +RDEPEND="${DEPEND}" src_unpack() { unpack ${A} || die "Unpacking ${A} failed!" find "${WORKDIR}" -name Makefile -exec sed -i -e 's/ -Xs / /g' {} + || die + + # Use default configuration (minus stripping) unless specifically requested otherwise + if ! test ${PPC_CONFIG_PATH+set}; then + local FPCVER=$(fpc -iV) + export PPC_CONFIG_PATH="${WORKDIR}" + /usr/lib/fpc/${FPCVER}/samplecfg /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die + sed -i -e '/^-Xs/d' "${PPC_CONFIG_PATH}"/fpc.cfg || die + fi } src_compile() { @@ -28,3 +37,8 @@ src_compile() { src_install() { emake -j1 INSTALL_PREFIX="${D}"usr install || die "make install failed" } + +pkg_postinst() { + einfo "To read the documentation, enable the doc USE flag for dev-lang/fpc," + einfo "and add /usr/share/doc/fpc-${PV}/fpctoc.htx to the Help Files list." +} diff --git a/dev-lang/fpc/ChangeLog b/dev-lang/fpc/ChangeLog index 4e3e0916b0d8..01d5535092af 100644 --- a/dev-lang/fpc/ChangeLog +++ b/dev-lang/fpc/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/fpc # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.47 2009/04/23 21:05:03 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/ChangeLog,v 1.48 2009/06/09 21:04:10 truedfx Exp $ + +*fpc-2.2.4-r1 (09 Jun 2009) + + 09 Jun 2009; Harald van Dijk <truedfx@gentoo.org> +fpc-2.2.4-r1.ebuild: + Install HTML documentation instead of PDF files, so that fpc-ide can + display it. Drop warning about -Xs. *fpc-2.2.4 (23 Apr 2009) diff --git a/dev-lang/fpc/fpc-2.2.4-r1.ebuild b/dev-lang/fpc/fpc-2.2.4-r1.ebuild new file mode 100644 index 000000000000..60c8eae56c13 --- /dev/null +++ b/dev-lang/fpc/fpc-2.2.4-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/fpc/fpc-2.2.4-r1.ebuild,v 1.1 2009/06/09 21:04:10 truedfx Exp $ + +inherit eutils + +S="${WORKDIR}/fpcbuild-${PV}/fpcsrc" + +HOMEPAGE="http://www.freepascal.org/" +DESCRIPTION="Free Pascal Compiler" +SRC_URI="mirror://sourceforge/freepascal/fpcbuild-${PV}.tar.gz + x86? ( mirror://sourceforge/freepascal/fpc-2.2.4.i386-linux.tar ) + sparc? ( mirror://sourceforge/freepascal/fpc-2.2.4.sparc-linux.tar ) + ppc? ( mirror://sourceforge/freepascal/fpc-2.2.4.powerpc-linux.tar ) + amd64? ( mirror://sourceforge/freepascal/fpc-2.2.4.x86_64-linux.tar ) + doc? ( mirror://sourceforge/freepascal/fpc-${PV}-doc-html.tar.gz + mirror://gentoo/fpc-${PV}-fpctoc.htx.bz2 )" + +SLOT="0" +LICENSE="GPL-2 LGPL-2.1 LGPL-2.1-FPC" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc source" + +DEPEND="!dev-lang/fpc-bin + !dev-lang/fpc-source" +RDEPEND="${DEPEND}" +DEPEND="${DEPEND} + >=sys-devel/binutils-2.19.1-r1" + +src_unpack() { + case ${ARCH} in + x86) FPC_ARCH="i386" PV_BIN=2.2.4 ;; + ppc) FPC_ARCH="powerpc" PV_BIN=2.2.4 ;; + amd64) FPC_ARCH="x86_64" PV_BIN=2.2.4 ;; + sparc) FPC_ARCH="sparc" PV_BIN=2.2.4 ;; + *) die "This ebuild doesn't support ${ARCH}." ;; + esac + + unpack ${A} || die "Unpacking ${A} failed!" + + tar -xf binary.${FPC_ARCH}-linux.tar || die "Unpacking binary.${FPC_ARCH}-linux.tar failed!" + tar -xzf base.${FPC_ARCH}-linux.tar.gz || die "Unpacking base.${FPC_ARCH}-linux.tar.gz failed!" + + cd "${S}" + epatch "${FILESDIR}"/${P}-execstack.patch + sed -i -e 's/ -Xs / /g' $(find . -name Makefile) || die "sed failed" +} + +set_pp() { + case ${ARCH} in + x86) FPC_ARCH="386" ;; + ppc) FPC_ARCH="ppc" ;; + amd64) FPC_ARCH="x64" ;; + sparc) FPC_ARCH="sparc" ;; + *) die "This ebuild doesn't support ${ARCH}." ;; + esac + + case ${1} in + bootstrap) pp="${WORKDIR}"/lib/fpc/${PV_BIN}/ppc${FPC_ARCH} ;; + new) pp="${S}"/compiler/ppc${FPC_ARCH} ;; + *) die "set_pp: unknown argument: ${1}" ;; + esac +} + +src_compile() { + local pp + + # Using the bootstrap compiler. + set_pp bootstrap + + emake -j1 PP="${pp}" compiler_cycle || die "make compiler_cycle failed!" + + # Save new compiler from cleaning... + cp "${S}"/compiler/ppc${FPC_ARCH} "${S}"/ppc${FPC_ARCH}.new + + # ...rebuild with current version... + emake -j1 PP="${S}"/ppc${FPC_ARCH}.new compiler_cycle || die "make compiler_cycle failed!" + + # ..and clean up afterwards + rm "${S}"/ppc${FPC_ARCH}.new + + # Using the new compiler. + set_pp new + + emake -j1 PP="${pp}" rtl_clean || die "make rtl_clean failed" + + emake -j1 PP="${pp}" rtl packages_all utils || die "make failed" +} + +src_install() { + local pp + set_pp new + + set -- PP="${pp}" FPCMAKE="${S}/utils/fpcm/fpcmake" \ + INSTALL_PREFIX="${D}"usr \ + INSTALL_DOCDIR="${D}"usr/share/doc/${P} \ + INSTALL_MANDIR="${D}"usr/share/man \ + INSTALL_SOURCEDIR="${D}"usr/lib/fpc/${PV}/source + + emake -j1 "$@" compiler_install rtl_install packages_install \ + utils_install || die "make install failed!" + + dosym ../lib/fpc/${PV}/ppc${FPC_ARCH} /usr/bin/ppc${FPC_ARCH} + + if ! has nodoc ${FEATURES} ; then + cd "${S}"/../install/doc + emake -j1 "$@" installdoc || die "make installdoc failed!" + fi + + if ! has noman ${FEATURES} ; then + cd "${S}"/../install/man + emake -j1 "$@" installman || die "make installman failed!" + fi + + if ! has nodoc ${FEATURES} && use doc ; then + cd "${S}"/../../share/doc/fpdocs-${PV} + insinto /usr/share/doc/${P} + doins -r * || die "doins fpdocs failed" + newins "${WORKDIR}"/fpc-${PV}-fpctoc.htx fpctoc.htx || die "newins fpctoc.htx failed" + fi + + if use source ; then + cd "${S}" + shift + emake -j1 PP="${D}"usr/bin/ppc${FPC_ARCH} "$@" sourceinstall || die "make sourceinstall failed!" + find "${D}"usr/lib/fpc/${PV}/source -name '*.o' -exec rm {} \; + fi + + "${D}"usr/lib/fpc/${PV}/samplecfg "${D}"usr/lib/fpc/${PV} "${D}"etc || die "samplecfg failed" + sed -i -e "s:${D}:/:g" "${D}"etc/fpc.cfg || die "sed fpc.cfg failed" + + rm -rf "${D}"usr/lib/fpc/lexyacc +} diff --git a/dev-lang/lazarus/ChangeLog b/dev-lang/lazarus/ChangeLog index 6139f8709d38..c6aa8f4846bc 100644 --- a/dev-lang/lazarus/ChangeLog +++ b/dev-lang/lazarus/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for dev-lang/lazarus # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.27 2009/05/12 18:24:27 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/ChangeLog,v 1.28 2009/06/09 21:04:09 truedfx Exp $ + + 09 Jun 2009; Harald van Dijk <truedfx@gentoo.org> + lazarus-0.9.26-r3.ebuild: + Build with clean fpc config *lazarus-0.9.26-r3 (12 May 2009) diff --git a/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild b/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild index 47752e580f5e..b3260952e37c 100644 --- a/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild +++ b/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild,v 1.1 2009/05/12 18:24:27 truedfx Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lazarus/lazarus-0.9.26-r3.ebuild,v 1.2 2009/06/09 21:04:09 truedfx Exp $ EAPI=2 @@ -26,23 +26,17 @@ DEPEND="${DEPEND} S=${WORKDIR}/${PN} -src_unpack() { - # check for broken fpc.cfg - # don't check in pkg_setup since it won't harm binpkgs - if grep -q '^[ ]*-Fu.*/lcl$' /etc/fpc.cfg - then - eerror "Your /etc/fpc.cfg automatically adds a LCL directory" - eerror "to the list of unit directories. This will break the" - eerror "build of lazarus." - die "don't set the LCL path in /etc/fpc.cfg" - fi - - default -} - src_prepare() { epatch "${FILESDIR}"/${P}-fpcsrc.patch epatch "${FILESDIR}"/${P}-clipboard-crash.patch #269221 + + # Use default configuration (minus stripping) unless specifically requested otherwise + if ! test ${PPC_CONFIG_PATH} ; then + local FPCVER=$(fpc -iV) + export PPC_CONFIG_PATH="${WORKDIR}" + /usr/lib/fpc/${FPCVER}/samplecfg /usr/lib/fpc/${FPCVER} "${PPC_CONFIG_PATH}" || die + sed -i -e '/^-Xs/d' "${PPC_CONFIG_PATH}"/fpc.cfg || die + fi } src_compile() { |