Makefile 996 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # $OpenBSD: Makefile,v 1.9 2017/04/21 13:27:46 kurt Exp $
  2. COMMENT= general purpose multi-paradigm programming language
  3. DISTNAME= scala-2.10.1
  4. CATEGORIES= lang
  5. REVISION= 1
  6. HOMEPAGE= http://www.scala-lang.org/
  7. # BSD
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MASTER_SITES= ${HOMEPAGE}/downloads/distrib/files/
  10. EXTRACT_SUFX= .tgz
  11. MODULES= java
  12. MODJAVA_VER= 1.6+
  13. RUN_DEPENDS= java/javaPathHelper \
  14. shells/bash
  15. SCALA_HOME= ${PREFIX}/scala/
  16. SCALA_SCRIPTS= fsc scala scalac scalap scaladoc
  17. NO_BUILD= Yes
  18. NO_TEST= Yes
  19. # Remove BAT files which we obviously don't want installed.
  20. post-extract:
  21. rm ${WRKSRC}/bin/*.bat
  22. do-install:
  23. ${INSTALL_DATA_DIR} ${SCALA_HOME}
  24. cd ${WRKSRC} && tar -cf - bin doc lib misc src | \
  25. tar -xf - -C ${SCALA_HOME}
  26. ${INSTALL_MAN} ${WRKSRC}/man/man1/*.1 ${PREFIX}/man/man1/
  27. # Install the wrapper scripts
  28. .for s in ${SCALA_SCRIPTS}
  29. ${INSTALL_SCRIPT} ${FILESDIR}/$s ${PREFIX}/bin/
  30. ${SUBST_CMD} ${PREFIX}/bin/$s
  31. rm ${PREFIX}/bin/$s.beforesubst
  32. .endfor
  33. .include <bsd.port.mk>