new package: fastmod

This commit is contained in:
Leonid Pliushch 2019-09-26 17:32:43 +03:00
parent fa0542c054
commit c86fb455fa
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,8 @@
TERMUX_PKG_HOMEPAGE=https://github.com/facebookincubator/fastmod
TERMUX_PKG_DESCRIPTION="Regex-based code refactoring utility"
TERMUX_PKG_LICENSE="Apache-2.0"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com>"
TERMUX_PKG_VERSION=0.2.6
TERMUX_PKG_SRCURL=https://github.com/facebookincubator/fastmod/archive/v$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=b70f615e883cc6cc235b62ee15ec2ec7ef4b04618b42fb79d8ee807440f6cf3c
TERMUX_PKG_BUILD_IN_SRC=true

View File

@ -0,0 +1,12 @@
diff -uNr fastmod-0.2.6/src/main.rs fastmod-0.2.6.mod/src/main.rs
--- fastmod-0.2.6/src/main.rs 2019-07-25 02:38:07.000000000 +0300
+++ fastmod-0.2.6.mod/src/main.rs 2019-09-26 17:24:36.272089773 +0300
@@ -80,7 +80,7 @@
}
fn run_editor(path: &Path, start_line: usize) -> Result<()> {
- let editor = env::var("EDITOR").unwrap_or_else(|_| String::from("vim"));
+ let editor = env::var("EDITOR").unwrap_or_else(|_| String::from("vi"));
let args: Vec<&str> = editor.split(' ').collect();
let mut editor_cmd = {
let mut cmd = Command::new(args[0])