1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00
freebsd-ports/textproc/p5-PerlPoint-Package/Makefile
Mathieu Arnold 6d588589c2 Make defining both PORTVERSION and DISTVERSION a DEV_ERROR.
There are two cases:

- The upstream versionning is compatible with our versionning, or using
  DISTVERSION's magic leads to a compatible PORTVERSION, use
  DISTVERSION.  If it is possible to use DISTVERSIONPREFIX and
  DISTVERSIONSUFFIX to make it compatible, use them.
- The upstream versionning is not compatible with our versionning, and
  DISTVERSION's magic does not lead to a correct PORTVERSION, then set
  PORTVERSION to the equivalent of our versionning, and set DISTNAME.
  It is possible to use a third variable where you store upstream's
  version and use it to compute PORTVERSION and/or DISTNAME, like the
  dns/bind9* ports do.

Sponsored by:	Absolight
2017-04-11 15:21:23 +00:00

33 lines
808 B
Makefile

# Created by: mat
# $FreeBSD$
PORTNAME= PerlPoint-Package
PORTVERSION= 0.45.2
PORTREVISION= 2
CATEGORIES= textproc perl5
MASTER_SITES= CPAN
DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(.)$/\1/}
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= PerlPoint is both a presentation and a documentation toolset
BUILD_DEPENDS= p5-Digest-SHA1>=0:security/p5-Digest-SHA1
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDOCS= # suck all DOCSDIR
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC} && ${COPYTREE_SHARE} utilities ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/demo && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>