1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/lang/tinypy/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

53 lines
1.1 KiB
Makefile

# Created by: Marcin Cieslak <saper@SYSTEM.PL>
# $FreeBSD$
PORTNAME= tinypy
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= lang python
MASTER_SITES= GOOGLE_CODE
MAINTAINER= saper@saper.info
COMMENT= Minimalist implementation of python in 64k of code
LICENSE= MIT PSFL
LICENSE_COMB= multi
LICENSE_FILE= LICENSE.txt
USES= python:build
USE_PYTHON= distutils noegginfo
PYDISTUTILS_BUILD_TARGET= linux
PLIST_FILES= bin/tinypy
OPTIONS_DEFINE= PYGAME EXAMPLES
PYGAME_DESC= PyGame support (requires SDL)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYGAME}
PYDISTUTILS_BUILD_TARGET+= pygame
USE_SDL= sdl
PORTEXAMPLES= *
.endif
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's|-O.||; s|gcc $$WFLAGS|${CC} ${CFLAGS} -std=c89 -Wall|' \
-e 's|python |${PYTHON_CMD} |g' \
${WRKSRC}/setup.py
do-configure:
@${DO_NADA}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/build/tinypy ${STAGEDIR}${PREFIX}/bin
.if ${PORT_OPTIONS:MEXAMPLES} && ${PORT_OPTIONS:MPYGAME}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/julia.py ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>