Bug 277661 - www/redmine51: Add new port
Summary: www/redmine51: Add new port
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Xin LI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-13 06:02 UTC by Xin LI
Modified: 2024-04-01 05:42 UTC (History)
3 users (show)

See Also:


Attachments
Proposed patch (132.94 KB, application/mbox)
2024-03-13 06:02 UTC, Xin LI
no flags Details
Revised patch (132.89 KB, patch)
2024-03-14 07:03 UTC, Xin LI
no flags Details | Diff
Revised patch #2 (132.85 KB, patch)
2024-03-14 07:15 UTC, Xin LI
no flags Details | Diff
Revised patch #3 (132.42 KB, patch)
2024-03-19 04:54 UTC, Xin LI
delphij: maintainer-approval? (mikael)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Xin LI freebsd_committer freebsd_triage 2024-03-13 06:02:01 UTC
Created attachment 249127 [details]
Proposed patch

I would like to be maintainer of new port as I actively uses it.
Comment 1 Xin LI freebsd_committer freebsd_triage 2024-03-13 06:03:06 UTC
Comment on attachment 249127 [details]
Proposed patch

Requesting for feedback.
Comment 2 Mikael Urankar freebsd_committer freebsd_triage 2024-03-13 09:39:18 UTC
You can remove CONFLICTS_INSTALL, pkg handles the conflict just fine

rubygem-listen and yard: are only used in the group "development", not sure we want the dep
It gets removed in patch-Gemfile anyway
rubygem-mocha, rubygem-rubocop* and simplecov are in the group "test" and are removed in patch-Gemfile
You can turn them into an OPTION (TEST and DEV) if you find them usefull

rubygem-psych: I can't find this gem in Gemfile, is it usefull?

I have a local port for redmine51 where I've updated the rubygem version (couldn't
commit it yet due to lack of testing):
rubygem-csv>= 3.2.6 
rubygem-i18n>=1.14.1
rubygem-mail>=2.8.1
rubygem-mini_mime>=1.1.0
rubygem-mini_portile2>=2.8.2
rubygem-net-imap>=0.3.4
rubygem-net-pop>=0.1.2
rubygem-net-smtp>=0.3.3
rubygem-nokogiri>=1.15.2
rubygem-rbpdf>=1.21.3
rubygem-request_store15>=1.5.0
rubygem-rubyzip>=2.3.0

rubygem-commonmarker>=0.23.8
rubygem-deckar01-task_list>=2.3.2

You'll also need a new gem if MYSQL option is used: with_advisory_lock
https://www.redmine.org/issues/39437
https://www.redmine.org/projects/redmine/repository/svn/revisions/22458
Comment 3 Xin LI freebsd_committer freebsd_triage 2024-03-14 07:03:23 UTC
Created attachment 249146 [details]
Revised patch

Incorporated feedbacks from mikael@
Comment 4 Xin LI freebsd_committer freebsd_triage 2024-03-14 07:15:03 UTC
Created attachment 249147 [details]
Revised patch #2

Also removed psych dependency
Comment 5 Xin LI freebsd_committer freebsd_triage 2024-03-14 07:19:02 UTC
(In reply to Mikael Urankar from comment #2)
Hi, thanks a lot for your feedback!

I've revised the patch and added a new port for with_advisory_lock.  I'm not sure why it didn't broke on my own setup (nice catch!) so my test coverage is probably not sufficient.

I'll continue to do additional testing on the port; in the meantime, if you have your version ready please feel free to commit your version if your version was better.
Comment 6 Mikael Urankar freebsd_committer freebsd_triage 2024-03-14 07:41:00 UTC
(In reply to Xin LI from comment #5)
It's only a runtime problem. I've read the Gemfile and noticed the new dep, nothing more.
My version is almost the same as yours, you reorder the BUILD_DEPENDS and I did not.
Comment 7 Mikael Urankar freebsd_committer freebsd_triage 2024-03-14 07:44:16 UTC
You can drop CONFLICTS_INSTALL in redmine50

It seems bsd.redmine.mk is missing in redmine51, it's used for redmine plugins.
Comment 8 Xin LI freebsd_committer freebsd_triage 2024-03-19 04:54:46 UTC
Created attachment 249294 [details]
Revised patch #3

(Removed CONFLICTS change in www/redmine50 and changed with_advisory_lock dependency to include activerecord version).

The bsd.redmine.mk was removed because there is no in-tree usage of it; I don't really have strong opinion regarding it, but it was weird to add a file that is not being used by any other ports (even though the only needed change would be to s/50/51/g).
Comment 9 Mikael Urankar freebsd_committer freebsd_triage 2024-03-19 09:05:10 UTC
(In reply to Xin LI from comment #8)
I have some out of tree redmine modules, I can live without this file but it'd nice to ship it.
Looks good otherwise.
Comment 10 commit-hook freebsd_committer freebsd_triage 2024-04-01 05:42:40 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=1932cdae48b0471f05354eb7f5159ba704c48c0a

commit 1932cdae48b0471f05354eb7f5159ba704c48c0a
Author:     Xin LI <delphij@FreeBSD.org>
AuthorDate: 2024-04-01 05:41:13 +0000
Commit:     Xin LI <delphij@FreeBSD.org>
CommitDate: 2024-04-01 05:42:08 +0000

    www/redmine51: Add new port

    Redmine is a flexible project management web application written
    using Ruby on Rails framework, it is cross-platform and
    cross-database.

    PR:             ports/277661
    Reviewed by:    mikael

 www/Makefile                             |    1 +
 www/redmine51/Makefile (new)             |  124 ++
 www/redmine51/bsd.redmine.mk (new)       |   78 +
 www/redmine51/distinfo (new)             |    3 +
 www/redmine51/files/commonmark.rb (new)  |    2 +
 www/redmine51/files/markdown.rb (new)    |    1 +
 www/redmine51/files/mini_magick.rb (new) |    1 +
 www/redmine51/files/mysql.rb (new)       |    2 +
 www/redmine51/files/patch-Gemfile (new)  |  124 ++
 www/redmine51/files/pg.rb (new)          |    1 +
 www/redmine51/files/redmine.in (new)     |   39 +
 www/redmine51/files/thin.rb (new)        |    1 +
 www/redmine51/pkg-descr (new)            |   21 +
 www/redmine51/pkg-message (new)          |   18 +
 www/redmine51/pkg-plist (new)            | 2275 ++++++++++++++++++++++++++++++
 15 files changed, 2691 insertions(+)