Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Otter browser: new recipe #1006

Merged
merged 5 commits into from
Jan 14, 2017
Merged

Conversation

extrowerk
Copy link
Member

No description provided.

@extrowerk extrowerk changed the title Otter browser New recipe: Otter browser Jan 8, 2017
@extrowerk extrowerk changed the title New recipe: Otter browser Otter browser: new recipe Jan 8, 2017
@korli
Copy link
Contributor

korli commented Jan 9, 2017

Does it work?

korli
korli previously requested changes Jan 9, 2017
"
REQUIRES="
haiku$secondaryArchSuffix
hunspell$secondaryArchSuffix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib:libhunspell_1.4 ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miqlas, I guess @korli's question mark means: "Why don't you use lib:libhunspell_1.4$secondaryArchSuffix"
Because that's the lib that hunspell-1.4.2 provides.

REQUIRES="
haiku$secondaryArchSuffix
hunspell$secondaryArchSuffix
qt5$secondaryArchSuffix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib:libQt5Core$secondaryArchSuffix?

"

BUILD_PREREQUIRES="
cmd:cmake$secondaryArchSuffix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cmd:cmake is enough

"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
hunspell${secondaryArchSuffix}_devel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devel:libhunspell_1.4 :)

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
hunspell${secondaryArchSuffix}_devel
qt5${secondaryArchSuffix}_devel
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

devel:libQt5Core$secondaryArchSuffix?

hunspell${secondaryArchSuffix}_devel
qt5${secondaryArchSuffix}_devel
devel:libssl$secondaryArchSuffix
devel:libcrypto$secondaryArchSuffix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two should definitely come in REQUIRES too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@miqlas, when you copy these 2 lines to REQUIRES, don't forget to change the "devel:lib*" into "lib:lib*" to have:

	lib:libssl$secondaryArchSuffix
	lib:libcrypto$secondaryArchSuffix

Copy link
Member

@fbrosson fbrosson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor fixes & sugegstions

SOURCE_URI="https://github.com/OtterBrowser/otter-browser/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="1a184561b9dbf3443cf1f83ad8604976b1b06cc00a93306331b364f237363e20"
ADDITIONAL_FILES="otter.rdef.in"
SOURCE_DIR="otter-browser-$portVersion"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please swap SOURCE_DIR and ADDITIONAL_FILES.
Source: HaikuPorter guidelines

SUMMARY="A lightweight QtWebKit browser"
DESCRIPTION="Project aiming to recreate the best aspects of the \
classic Opera (12.x) UI using Qt5."
HOMEPAGE="http://otter-browser.org/"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://otter-browser.org/ is available through https (with Let's Encrypt certificates) so you might wish to change HOMEPAGE to:

HOMEPAGE="https://otter-browser.org/"

"

BUILD_PREREQUIRES="
cmd:cmake$secondaryArchSuffix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

	cmd:cmake

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libcrypto$secondaryArchSuffix
devel:libhunspell-1.4$secondaryArchSuffix
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be

	devel:libhunspell_1.4$secondaryArchSuffix

(rule: use "_" for "-")

make install

mv $appsDir/Otter-Browser/bin/otter-browser \
$appsDir/Otter-Browser/Otter-Browser
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is certainly a way to avoid this mv, by passing a parameter to cmake.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, it is defined so in cmakelist.txt, i don't want to use advanced sed magic for this, sorry.

mkdir -p build
cd build

cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/Otter\ Browser"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean

	cmake .. -DCMAKE_INSTALL_PREFIX:PATH="$appsDir/Otter-Browser"

@extrowerk
Copy link
Member Author

@korli : Yep, it works, but it using the Qt backend for SSL connections, and the current Qt in HaikuDepot doesn't handle them correctly, so it warns all the time about the certificates.
The otter guys told, it must be a bug in our Qt port. Maybe it requires an rebuild.

@waddlesplash waddlesplash dismissed korli’s stale review January 14, 2017 18:06

Requested changes were made.

@waddlesplash waddlesplash merged commit 9f81e2d into haikuports:master Jan 14, 2017
@extrowerk extrowerk deleted the otter_browser branch January 20, 2017 13:30
korli pushed a commit to korli/haikuports that referenced this pull request Jan 26, 2017
* Otter Browser: new recipe

* Otter browser: additional files

* Defined REQs

* Reworked recipe, including sed magic

* HTTPS homepage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants