htmlinc-1.0_beta1-r2.ebuild 722 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="HTML Include System by Ulli Meybohm"
  6. HOMEPAGE="http://www.meybohm.de/"
  7. SRC_URI="http://meybohm.de/files/${PN}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos ~x86-macos"
  11. IUSE=""
  12. S=${WORKDIR}/htmlinc
  13. src_prepare() {
  14. epatch "${FILESDIR}"/htmlinc-gcc3-gentoo.patch
  15. sed -i Makefile \
  16. -e 's| -o | $(LDFLAGS)&|g' \
  17. || die "sed Makefile"
  18. }
  19. src_compile() {
  20. # This is C++ not C source
  21. emake \
  22. CC=$(tc-getCXX) \
  23. CFLAGS="${CXXFLAGS} -Wall" \
  24. LDFLAGS="${LDFLAGS}"
  25. }
  26. src_install() {
  27. dobin htmlinc
  28. dodoc README
  29. }