1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-06 01:57:40 +00:00
freebsd-ports/misc/bogosort/Makefile
Eitan Adler 92cddd7da7 Take maintainership
Approved by:	maintainer (implicit)
2012-02-25 14:42:06 +00:00

44 lines
1.2 KiB
Makefile

# New ports collection makefile for: bogosort
# Date created: 15 September 2000
# Whom: roam@orbitel.bg
#
# $FreeBSD$
#
PORTNAME= bogosort
PORTVERSION= 0.4.2
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= http://www.lysator.liu.se/~qha/bogosort/ \
ftp://l82.ryd.student.liu.se/pub/unix/bogosort/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= ${PORTNAME}/${PORTVERSION}
MAINTAINER= eadler@FreeBSD.org
COMMENT= Sort (or not) stdin using the bogo-sort algorithm
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
GNU_CONFIGURE= yes
MAN1= bogosort.1
INFO= bogosort
PLIST_FILES= bin/bogosort
test: all
${PRINTF} "a\nb\nc\nd\n" > ${WRKDIR}/sorted
${PRINTF} "c\na\n\d\nb\n" > ${WRKDIR}/unsorted
@${ECHO_MSG} "Testing bogosort"
@${WRKSRC}/bogosort ${WRKDIR}/unsorted | diff - ${WRKDIR}/sorted && ${ECHO_MSG} "ok"
@${ECHO_MSG} "Testing zbogotest"
@${ECHO_MSG} " ${WRKSRC}/bogosort.c"
@${WRKSRC}/zbogotest ${WRKSRC}/bogosort.c || ${ECHO_MSG} "ok"
@${ECHO_MSG} " /dev/null"
@${WRKSRC}/zbogotest /dev/null && ${ECHO_MSG} "ok"
@${ECHO_MSG} " ${WRKDIR}/unsorted"
@${WRKSRC}/zbogotest ${WRKDIR}/unsorted || ${ECHO_MSG} "ok"
@${ECHO_MSG} " ${WRKDIR}/sorted"
@${WRKSRC}/zbogotest ${WRKDIR}/sorted && ${ECHO_MSG} "ok"
.include <bsd.port.mk>