Makefile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # $OpenBSD: Makefile,v 1.6 2016/06/09 13:54:34 kirby Exp $
  2. COMMENT = birthday reminder with tray notification
  3. GH_ACCOUNT = lafrech
  4. GH_PROJECT = gbirthday
  5. GH_TAGNAME = v0.6.10
  6. CATEGORIES = productivity x11
  7. HOMEPAGE = http://gbirthday.sourceforge.net/
  8. MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
  9. # GPLv2
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MODULES = lang/python
  12. RUN_DEPENDS = devel/desktop-file-utils \
  13. devel/py-notify \
  14. x11/gtk+3,-guic \
  15. x11/py-gtk2
  16. NO_TEST = Yes
  17. MODPY_ADJ_FILES += src/gb
  18. PKG_ARCH = *
  19. post-patch:
  20. sed -i 's,_Comment,Comment,' ${WRKSRC}/gbirthday.desktop.in
  21. sed -i 's,@VER@,${GH_TAGNAME:S/v//},g' ${WRKSRC}/src/gbirthday/__init__.py
  22. do-build:
  23. # dummy. cannot be "NO_BUILD" as that zaps BUILD_DEPENDS.
  24. pre-install:
  25. find ${WRKSRC} -name \*.orig -exec rm {} \;
  26. do-install:
  27. ${INSTALL_SCRIPT} ${WRKSRC}/src/gb ${PREFIX}/bin/gbirthday
  28. ${INSTALL_DATA_DIR} ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/
  29. cd ${WRKSRC}/src/ && pax -rw gbirthday \
  30. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/
  31. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  32. ${INSTALL_DATA} ${WRKSRC}/gbirthday.desktop.in \
  33. ${PREFIX}/share/applications/gbirthday.desktop
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/icons/hicolor/scalable/apps/
  35. ${INSTALL_DATA} ${WRKSRC}/pics/gbirthday.svg \
  36. ${PREFIX}/share/icons/hicolor/scalable/apps/
  37. post-install:
  38. ${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
  39. ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/gbirthday
  40. .include <bsd.port.mk>