Bug 198704

Summary: [NEW PORT] www/py-collective.easytemplate
Product: Ports & Packages Reporter: Michelle Sullivan <michelle>
Component: Individual Port(s)Assignee: Ruslan Makhmatkhanov <rm>
Status: Closed FIXED    
Severity: Affects Only Me CC: rm
Priority: --- Keywords: needs-patch, needs-qa
Version: Latest   
Hardware: Any   
OS: Any   
Bug Depends on: 199946    
Bug Blocks:    
Attachments:
Description Flags
Shar archive of new port.
none
Shar of new port.
none
Shar of new port. (after portlint -AC corrections)
none
New Shar.
koobs: maintainer-approval-
poudriere and portlint output
none
New shar file (with dependencies in the Makefile this time)
none
New shar file
none
Combined logfiles for build none

Description Michelle Sullivan 2015-03-19 13:38:27 UTC
Created attachment 154512 [details]
Shar archive of new port.

Plone add-on for dynamic templating.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2015-03-19 14:05:24 UTC
Original attachment only contains 4 lines, please attach a complete shar archive and obsolete attachment 154512 [details]

As per IRC, please also include attachments for QA:

 * portlint -AC
 * poudriere testport or bulk -t output
Comment 2 Michelle Sullivan 2015-03-19 14:07:34 UTC
Created attachment 154514 [details]
Shar of new port.

(Updated attachment after incorrect Shar creation)
Comment 3 Michelle Sullivan 2015-03-19 14:19:02 UTC
Created attachment 154515 [details]
Shar of new port. (after portlint -AC corrections)
Comment 4 Michelle Sullivan 2015-03-19 14:20:51 UTC
ports/www/py-plone.addon.collective.easytemplate # portlint -AC
WARN: Makefile: using hyphen in PORTNAME. consider using PKGNAMEPREFIX and/or PKGNAMESUFFIX.
WARN: Consider to set DEVELOPER=yes in /etc/make.conf
0 fatal errors and 2 warnings found.
ports/www/py-plone.addon.collective.easytemplate #
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2015-03-19 14:54:14 UTC
* Remove py- prefix from PORTNAME
* Match PORTNAME to upstream PyPi name
* DISTNAME override shouldn't be necessary with the former done
* Add LICENSE_FILE if one exists in WRKSRC
* COMMENT should match upstream (pypi) shortname. ie:
* Sort USE_PYTHON values alphabetically

Dynamic HTML generation and scripting of pages, content rules, portlets and emails

or maybe a shorter:

Dynamic HTML generation and scripting

* If 'plone' is *required* in the PKGNAMEPREFIX, append it there (Ruslan?)
Comment 6 Michelle Sullivan 2015-03-19 15:03:29 UTC
Created attachment 154516 [details]
New Shar.

Ok after all the discussion (thanks koobs)

removed the 'plone' (waiting on rm@ for final comment on that)
removed the distname
removed the py- (because I'm a f**kwit that didn't read properly)
changed the location/portdir to match the new name:

www/py-collective.easytemplate
Comment 7 Michelle Sullivan 2015-03-19 15:04:04 UTC
root@colossus:/Storage/source/ports/www/py-collective.easytemplate # portlint -AC
looks fine.
root@colossus:/Storage/source/ports/www/py-collective.easytemplate #
Comment 8 Michelle Sullivan 2015-03-21 11:43:55 UTC
====>> [01] Starting build of www/py-collective.easytemplate
====>> [01] Status for build www/py-collective.easytemplate: check-sanity
====>> [01] Status for build www/py-collective.easytemplate: pkg-depends
====>> [01] Status for build www/py-collective.easytemplate: fetch-depends
====>> [01] Status for build www/py-collective.easytemplate: fetch
====>> [01] Status for build www/py-collective.easytemplate: checksum
====>> [01] Status for build www/py-collective.easytemplate: distfiles
====>> [01] Status for build www/py-collective.easytemplate: extract-depends
====>> [01] Status for build www/py-collective.easytemplate: extract
====>> [01] Status for build www/py-collective.easytemplate: patch-depends
====>> [01] Status for build www/py-collective.easytemplate: patch
====>> [01] Status for build www/py-collective.easytemplate: build-depends
====>> [01] Status for build www/py-collective.easytemplate: lib-depends
====>> [01] Status for build www/py-collective.easytemplate: configure
====>> [01] Status for build www/py-collective.easytemplate: build
====>> [01] Status for build www/py-collective.easytemplate: run-depends
====>> [01] Status for build www/py-collective.easytemplate: stage
====>> [01] Status for build www/py-collective.easytemplate: package
====>> [01] Status for build www/py-collective.easytemplate: install-mtree
====>> [01] Status for build www/py-collective.easytemplate: install
====>> [01] Finished build of www/py-collective.easytemplate: Success
Comment 9 Kubilay Kocak freebsd_committer freebsd_triage 2015-03-21 11:48:42 UTC
As requested previously, please include QA (portlint, poudriere or equiv) outputs as attachments, not inline comments. Thanks!
Comment 10 Michelle Sullivan 2015-03-21 11:58:46 UTC
Created attachment 154617 [details]
poudriere and portlint output
Comment 11 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2015-04-02 05:00:08 UTC
Hi guys, sorry for late response. "plone" isn't needed in PKGNAMEPREFIX.
The port builds and installs fine, but it lacks required dependencies, so it's unclear to me how it supposed to work. Here is the dependencies listed in setup.py:

install_requires=['setuptools',
                  'Jinja2',
                  'plone.portlet.static',
                  'collective.templateengines',
                  'feedparser' # needed by RSS tag, could be softdependency
                  ],

We have no such thing as "collective.templateengines" in the ports tree, so you need port it too to make things work.
Comment 12 Kubilay Kocak freebsd_committer freebsd_triage 2015-04-02 05:01:56 UTC
Thanks Ruslan. Pending updated patch.
Comment 13 Michelle Sullivan 2015-04-14 10:10:25 UTC
Ok just got back off holiday - will look into it.
Comment 14 Michelle Sullivan 2015-05-05 08:30:11 UTC
Created attachment 156366 [details]
New shar file (with dependencies in the Makefile this time)
Comment 15 Michelle Sullivan 2015-05-05 08:31:51 UTC
www/py-collective.easytemplate$ portlint -AC
looks fine.


Need testport again?
Comment 16 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2015-05-05 09:41:52 UTC
Yes, would be great.
Comment 17 Michelle Sullivan 2015-05-07 09:52:18 UTC
Created attachment 156463 [details]
New shar file

New shar file - fixes dependencies and ordering of categories.
Comment 18 Michelle Sullivan 2015-05-07 09:52:52 UTC
Created attachment 156464 [details]
Combined logfiles for build

Combined logfiles for build (testport) of:

py-collective.easytemplate
py.collective.templateengines
Comment 19 commit-hook freebsd_committer freebsd_triage 2015-06-01 18:38:30 UTC
A commit references this bug:

Author: rm
Date: Mon Jun  1 18:38:26 UTC 2015
New revision: 388249
URL: https://svnweb.freebsd.org/changeset/ports/388249

Log:
  collective.easytemplate addon for Plone.

  WWW: https://pypi.python.org/pypi/collective.easytemplate/

  PR:		198704
  Submitted by:	Michelle Sullivan <michelle@sorbs.net>

Changes:
  head/www/Makefile
  head/www/py-collective.easytemplate/
  head/www/py-collective.easytemplate/Makefile
  head/www/py-collective.easytemplate/distinfo
  head/www/py-collective.easytemplate/pkg-descr
Comment 20 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2015-06-01 18:43:06 UTC
Committed, thank you! 

The only change I did is fixing collective.templateengines dependency in Makefile, while you set it to collective.easytemplate itself in last shar revision.