Bug 252085 - new port: editors/codelite-devel: powerful open-source, cross platform code editor for the C/C++ programming languages (development version)
Summary: new port: editors/codelite-devel: powerful open-source, cross platform code e...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-23 18:05 UTC by Ivan Rozhuk
Modified: 2024-03-16 00:17 UTC (History)
6 users (show)

See Also:


Attachments
patch (22.48 KB, patch)
2020-12-23 18:05 UTC, Ivan Rozhuk
no flags Details | Diff
patch (22.39 KB, patch)
2021-02-15 12:23 UTC, Ivan Rozhuk
no flags Details | Diff
patch (25.96 KB, patch)
2021-07-21 03:09 UTC, Ivan Rozhuk
no flags Details | Diff
patch (22.85 KB, patch)
2022-02-28 06:02 UTC, Ivan Rozhuk
no flags Details | Diff
patch (23.14 KB, patch)
2022-03-02 02:04 UTC, Ivan Rozhuk
no flags Details | Diff
patch 16.7.0 (13.04 KB, patch)
2022-10-25 23:59 UTC, Ivan Rozhuk
no flags Details | Diff
patch (10.00 KB, patch)
2024-03-15 21:54 UTC, Ivan Rozhuk
no flags Details | Diff
17.0.0.20240315 (9.82 KB, patch)
2024-03-16 00:17 UTC, Ivan Rozhuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2020-12-23 18:05:23 UTC
Created attachment 220867 [details]
patch

CodeLite is a powerful open-source, cross platform code editor for the
C/C++ programming languages.

CodeLite uses a sophisticated, yet intuitive interface which allows
user to easy create and build complex projects.

WWW: https://codelite.org/
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2021-01-30 10:37:39 UTC
Hi,

Given the discussion in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252738 can you perhaps adapt this patch to the main port instead of creating -devel?

Best regards,
Daniel
Comment 2 Rainer Hurling freebsd_committer freebsd_triage 2021-01-30 11:27:41 UTC
(In reply to daniel.engberg.lists from comment #1)
Hi Ivan,

Is it also possible to you to update your patch to v15.0.0 [1] (release version)? That would be really great :)


[1] https://github.com/eranif/codelite/commit/53713d80b98cca07fef5e0f697497613f18adcff
Comment 3 Ivan Rozhuk 2021-02-15 12:23:36 UTC
Created attachment 222464 [details]
patch
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2021-02-15 21:58:45 UTC
Hi Ivan,

Can we transfer this to the main port instead? It's soon going to be broken due to bumping pango.

A few things that can be improved by looking at your Makefile

L4 and L26: Please follow Porter's Handbook 
https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/book.html#makefile-master_sites-github-ex5

L12 Seems to be GPLv2 ?
Define LICENSE_FILE
https://docs.freebsd.org/en_US.ISO8859-1/books/porters-handbook/book.html#licenses-license_file-ex1

L17 Remove?

L27 is already defined by the framework
https://svnweb.freebsd.org/ports/head/Mk/Uses/cmake.mk?revision=488341&view=markup#l68

L34 is this really needed and if it is, please use a proper DEBUG menu option
https://github.com/eranif/codelite/blob/master/CMakeLists.txt#L429

L105, are you really sure about that?

There is quite a bit of REINPLACE_CMD going on, this is in general discouraged perhaps usage can be reduced and replaced with patches?

Some things are out of order, have a look at portlint and/or portclippy

Does it pass poudriere?

Great work!
Daniel
Comment 5 mburetorp 2021-02-20 15:51:43 UTC
Good work getting v15 to FreeBSD ports. I look forward to this p
Comment 6 mburetorp 2021-02-20 15:55:14 UTC
Sorry for that incomplete message. I just wanted to say good work! Now that v15 is released the main port should probably be updated.
Comment 7 Ivan Rozhuk 2021-07-21 03:09:17 UTC
Created attachment 226576 [details]
patch
Comment 8 ykla 2022-02-23 14:38:51 UTC
Sorry to trouble, but whereis editors/codelite-devel? Codelite is masked broken.
Comment 9 Tim 2022-02-28 01:09:33 UTC
It seems some work has been done, but unclear where it stands.  Apparently codelite is broken in the ports tree.  I would like to work on getting codelite 15 to build in the ports true for freebsd 13.0.  And avoid redoing any work that has already been done.  Please comment.
Comment 10 Tim 2022-02-28 01:24:35 UTC
(In reply to ykla from comment #8)
I am attempting to build now from the git distro.
Comment 11 Ivan Rozhuk 2022-02-28 06:02:13 UTC
Created attachment 232153 [details]
patch

This is what I am using now.
Comment 12 Tim 2022-02-28 06:27:16 UTC
(In reply to Ivan Rozhuk from comment #11)
Thanks Ivan(In reply to Ivan Rozhuk from comment #11)
I will try to build the port using these two files and report back.
Comment 13 ykla 2022-02-28 14:38:54 UTC
Will merge it to main ports?
Comment 14 Tim 2022-03-02 00:35:22 UTC
(In reply to Ivan Rozhuk from comment #11)
I had problems, probably user error.  It does look like the offending file is identified:  MySqlDbAdapter.cpp.rej

I copied the files folder from FBSD12.2 port and ran make using your attachments. I checked most of the boxes in the curses window.  was the files folder copy a mistake?  got this output: 
short form...

===>  Patching for codelite-devel-15.0.7.20210914
===>   Converting DOS text files to UNIX text files
===>  Applying FreeBSD patches for codelite-devel-15.0.7.20210914 from /usr/ports/editors/codelite-devel/files
1 out of 1 hunks failed--saving rejects to DatabaseExplorer/MySqlDbAdapter.cpp.rej
===>  FAILED Applying FreeBSD patch-DatabaseExplorer_MySqlDbAdapter.cpp
===> FAILED to apply cleanly FreeBSD patch(es)  patch-DatabaseExplorer_MySqlDbAdapter.cpp
*** Error code 1

long form...
===>  License GPLv2+ accepted by the user
===>   codelite-devel-15.0.7.20210914 depends on file: /usr/local/sbin/pkg - found
=> eranif-codelite-15.0.7.20210914-0a4cba5bd3be838806405490b66943f09d4592b4_GH0.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch https://codeload.github.com/eranif/codelite/tar.gz/0a4cba5bd3be838806405490b66943f09d4592b4?dummy=/eranif-codelite-15.0.7.20210914-0a4cba5bd3be838806405490b66943f09d4592b4_GH0.tar.gz
fetch: https://codeload.github.com/eranif/codelite/tar.gz/0a4cba5bd3be838806405490b66943f09d4592b4?dummy=/eranif-codelite-15.0.7.20210914-0a4cba5bd3be838806405490b66943f09d4592b4_GH0.tar.gz: size unknown
fetch: https://codeload.github.com/eranif/codelite/tar.gz/0a4cba5bd3be838806405490b66943f09d4592b4?dummy=/eranif-codelite-15.0.7.20210914-0a4cba5bd3be838806405490b66943f09d4592b4_GH0.tar.gz: size of remote file is not known
eranif-codelite-15.0.7.20210914-0a4cba5bd3be83         107 MB  713 kBps 02m34s
===> Fetching all distfiles required by codelite-devel-15.0.7.20210914 for building
===>  Extracting for codelite-devel-15.0.7.20210914
=> SHA256 Checksum OK for eranif-codelite-15.0.7.20210914-0a4cba5bd3be838806405490b66943f09d4592b4_GH0.tar.gz.
===>  Patching for codelite-devel-15.0.7.20210914
===>   Converting DOS text files to UNIX text files
===>  Applying FreeBSD patches for codelite-devel-15.0.7.20210914 from /usr/ports/editors/codelite-devel/files
1 out of 1 hunks failed--saving rejects to DatabaseExplorer/MySqlDbAdapter.cpp.rej
===>  FAILED Applying FreeBSD patch-DatabaseExplorer_MySqlDbAdapter.cpp
===> FAILED to apply cleanly FreeBSD patch(es)  patch-DatabaseExplorer_MySqlDbAdapter.cpp
*** Error code 1
Comment 15 Tim 2022-03-02 00:38:23 UTC
(In reply to Tim from comment #14)
It looks like the files folder is unnecessary now??
Comment 16 Tim 2022-03-02 01:48:59 UTC
(In reply to Ivan Rozhuk from comment #11)
I removed all the files except one from the files folder.  that seems to work.  so maybe you replaced those patches.  I kept the 4th file.  Now it is building.
Comment 17 Ivan Rozhuk 2022-03-02 02:04:24 UTC
Created attachment 232196 [details]
patch

Fix linking with gobject-2.0.
Comment 18 Ivan Rozhuk 2022-10-25 23:59:36 UTC
Created attachment 237633 [details]
patch 16.7.0

Update to 16.7.0 with wx3.2 support.
Comment 19 Ivan Rozhuk 2024-03-15 21:54:36 UTC
Created attachment 249203 [details]
patch

Probably some things are broken from last patch (valngring, etc...) by upstream.

SFTP - broken: can not be unset: https://github.com/eranif/codelite/issues/3335

There is new regexps for compilers, it is more faster and consume less memory.
It was one of most annoying issues for me in past 7 years.
https://github.com/eranif/codelite/commit/d54c081b7f50236cc48985aaa3c73cc3a789a698
It requires manual update if you already have configured compilers (build settings menu).

Also build output optimized to avoid GUI hang then build big project with spammy warnings level.
Comment 20 Ivan Rozhuk 2024-03-16 00:17:46 UTC
Created attachment 249204 [details]
17.0.0.20240315

SFTP option fixed.