Index: graphics/Makefile =================================================================== --- graphics/Makefile +++ graphics/Makefile @@ -883,6 +883,7 @@ SUBDIR += py-openexr SUBDIR += py-openimageio SUBDIR += py-paint + SUBDIR += py-photocollage SUBDIR += py-pillow SUBDIR += py-pivy SUBDIR += py-plotly Index: graphics/py-photocollage/Makefile =================================================================== --- /dev/null +++ graphics/py-photocollage/Makefile @@ -0,0 +1,35 @@ +# $FreeBSD$ + +PORTNAME= photocollage +DISTVERSION= 1.4.4 +CATEGORIES= graphics python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Graphical tool to make photo collage posters + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= msgfmt:devel/gettext-tools +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>0:graphics/py-cairo@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>:devel/py-six@${FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e ' \ + s|${PORTNAME}|${PORTNAME}-${PYTHON_VER}| ; \ + s|^Name.*|& (python${PYTHON_VER})|' \ + ${WRKSRC}/data/${PORTNAME}.desktop + @${REINPLACE_CMD} -E 's/photocollage\.(png|svg|desktop|appdata\.xml)/photocollage-${PYTHON_VER}.\1/' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -E 's/APP_NAME = "photocollage"/APP_NAME = "photocollage-${PYTHON_VER}"/' ${WRKSRC}/photocollage/__init__.py + @cd ${WRKSRC} && for f in $$(${FIND} -E . -regex '.*\.(png|svg|desktop|appdata\.xml)'); do \ + ${MV} $$f $$(${ECHO} $$f | ${SED} -E 's|photocollage\.([[:alpha:].]*)|photocollage-${PYTHON_VER}.\1|'); \ + done + +.include Index: graphics/py-photocollage/distinfo =================================================================== --- /dev/null +++ graphics/py-photocollage/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1512206067 +SHA256 (photocollage-1.4.4.tar.gz) = 3606422f1c09afcf10ba2567642580ac1a0447d7de8b4a10e4d380177b563ca9 +SIZE (photocollage-1.4.4.tar.gz) = 186404 Index: graphics/py-photocollage/pkg-descr =================================================================== --- /dev/null +++ graphics/py-photocollage/pkg-descr @@ -0,0 +1,7 @@ +PhotoCollage allows you to create photo collage posters. It assembles the input +photographs it is given to generate a big poster. Photos are automatically +arranged to fill the whole poster, then you can change the final layout, +dimensions, border or swap photos in the generated grid. Eventually the final +poster image can be saved in any size. + +WWW: https://github.com/adrienverge/PhotoCollage