[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / converters / unoconv

File: [cvs.NetBSD.org] / pkgsrc / converters / unoconv / Makefile (download)

Revision 1.7, Fri Dec 4 20:45:03 2020 UTC (3 years, 2 months ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.6: +2 -2 lines

Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.7 2020/12/04 20:45:03 nia Exp $

DISTNAME=	unoconv-0.7
PKGREVISION=	4
CATEGORIES=	converters
MASTER_SITES=	${MASTER_SITE_GITHUB:=dagwieers/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/dagwieers/unoconv/
COMMENT=	Convert any format supported by LibreOffice/OpenOffice
LICENSE=	gnu-gpl-v2

USE_TOOLS+=	gmake

REPLACE_PYTHON+=	unoconv

BUILD_DEPENDS+=	asciidoc-[0-9]*:../../textproc/asciidoc
DEPENDS+=	libreoffice>=5.3.4.2nb1:../../misc/libreoffice

pre-build:
	${SED} -e "s|@PREFIX@|${PREFIX}|; s|@PKG_INFO_CMD@|${PKG_INFO_CMD}|;" \
	     ${FILESDIR}/unoconv.sh > ${WRKDIR}/unoconv.sh

do-install:
	${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/bin
	${INSTALL_PROGRAM_DIR} ${DESTDIR}/${PREFIX}/libexec
	${INSTALL_MAN_DIR} ${DESTDIR}/${PREFIX}/${PKGMANDIR}/man1
	${INSTALL_SCRIPT} ${WRKSRC}/unoconv \
	    ${DESTDIR}${PREFIX}/libexec/unoconv.py
	${INSTALL_SCRIPT} ${WRKDIR}/unoconv.sh \
	    ${DESTDIR}${PREFIX}/bin/unoconv
	${INSTALL_MAN} ${WRKSRC}/doc/unoconv.1 \
	    ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/unoconv.1

.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"