1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/misc/bogosort/Makefile
Peter Pentchev 641e9357ef A long-overdue dequoting of COMMENT. D'oh, I thought I'd done this,
like, MONTHS ago!

Submitted by:	Brian Poole <raj@cerias.purdue.edu>
2004-11-01 17:09:55 +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= roam@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>